Code Monkey home page Code Monkey logo

Comments (8)

ryanheath avatar ryanheath commented on July 17, 2024

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.

Gourab-Ghosh avatar Gourab-Ghosh commented on July 17, 2024

@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.

mcthouacbb avatar mcthouacbb commented on July 17, 2024

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.

ryanheath avatar ryanheath commented on July 17, 2024

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.

Gourab-Ghosh avatar Gourab-Ghosh commented on July 17, 2024

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.

Gourab-Ghosh avatar Gourab-Ghosh commented on July 17, 2024

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.

ryanheath avatar ryanheath commented on July 17, 2024

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.

Gourab-Ghosh avatar Gourab-Ghosh commented on July 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.