Code Monkey home page Code Monkey logo

Comments (3)

James-Livesey avatar James-Livesey commented on June 26, 2024

Just fixed this, so it should work now! Basically, the arguments passed to commands such as draw ended up getting evaluated multiple times (which is a problem when expressions containing random always change), so I made sure they only get evaluated once. There were a bunch of other commands that are affected by this issues as well, so I fixed all of them, too.

Test case program:

5 cls
10 for count=1 to 10
11 x=random*500
12 y=random*500
20 draw random*500, random*500
30 next
40 goto 40

Thanks for reporting the issue! The atto.devicefuture.org site should update shortly, and you might need to clear your browser cache.

from atto.

James-Livesey avatar James-Livesey commented on June 26, 2024

(Also — not sure if it was intentional on your part — but I appreciate how the bad and good test cases are coloured red and green respectively 😉)

from atto.

 avatar commented on June 26, 2024

Yes, if I don't do a "hard reset", the bug will still weirdly be there.

from atto.

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.