Comments (8)
No that is not allowed.
Look for removing unneeded (squirly) brackets, repeated code/variables, mabye even smaller types, not everything needs to be an int.
from chess-challenge.
@ryanheath by saying this is not allowed, did you mean this is not possible in C# or not allowed in the rules? Because it is mentioned in #224 that adding code via string is allowed.
from chess-challenge.
Adding code via ulongs is allowed, adding it via strings is not allowed
besides, strings count as 1 token per character so they are extremely inefficient
from chess-challenge.
Running other code than what is already compiled is not allowed.
Try to use strings to compress used ulong tables is allowed, though I dont think you will gain much, if not anything.
from chess-challenge.
Adding code via ulongs is allowed, adding it via strings is not allowed
besides, strings count as 1 token per character so they are extremely inefficient
I am exactly trying to do that. I know at this point how to store code into ulongs and how to generate code from those ulongs. But once I get the code I don't know how to make use of it. That is what I am asking, what to do with the string of code now? Is this string even useful in any way? I want to write my whole code in ulongs and then run it. Is it possible?
from chess-challenge.
Running other code than what is already compiled is not allowed.
Try to use strings to compress used ulong tables is allowed, though I dont think you will gain much, if not anything.
Thanks for your help. Although I am more interested to store code in ulongs which I just explained in the previous comment, still I am interested to know how to compress ulongs through string. Can you show any little sample code for this?
from chess-challenge.
If I understand you correctly, what you want is not allowed.
Do you want to execute code based on the content of the string? That is not allowed.
#224 allows simple values to be store in strings, but those values may not be use as executable code.
from chess-challenge.
If I understand you correctly, what you want is not allowed. Do you want to execute code based on the content of the string? That is not allowed.
#224 allows simple values to be store in strings, but those values may not be use as executable code.
Exactly I wanted to do that only. But after this conversation I don't think it is possible. Storing information into a string will definitely take more tokens as strings are so expensive and I am not planning to do that. Anyways thank you for your awesome support.
from chess-challenge.
Related Issues (20)
- Canβt open board HOT 5
- board.cs has an error. HOT 4
- Significant performance boost to IsDraw method HOT 3
- Copying boards/overriding fen strings HOT 2
- Each character in string counts as token HOT 3
- Please select a valid startup item
- Black pawn appearing on h4
- Build errors when trying to run MyBot without changing anything from when downloading it. HOT 1
- Bot Brain Capacity change. HOT 2
- SquareIsAttackedByOpponent is returning true, although the square isn't attacked HOT 1
- Game over every time, even when MyBot won the round. HOT 6
- Final knockout tournament clarification HOT 2
- HOw to set custom Chess position to test bot HOT 2
- Submission Deadline Clarification HOT 1
- [Critical Bug] The Token Counter is bugged HOT 5
- bot submission size limit issue HOT 1
- Is there any update on competition? HOT 14
- PGN parser
- Segmentation fault (core dumped) when launching Chess-Challenge v1.20 on Ubuntu 20.04 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chess-challenge.