darthjdg / numguess Goto Github PK
View Code? Open in Web Editor NEWNumber guessing game collection in multiple programming languages
Home Page: http://codebin.co.uk/projects/numguess/
License: GNU General Public License v3.0
Number guessing game collection in multiple programming languages
Home Page: http://codebin.co.uk/projects/numguess/
License: GNU General Public License v3.0
Need to add some exception handling for invalid number input. Jasmin version added in commit 0ac4410.
Something is seriously wrong with Lua. Calculation of the max_tries
variable looks ok, the value is still wrong. With a limit of 10 it should be 4, Lua calculates 3.
Tested with Lua for Windows 5.1.4.
Move maxTries calc out of game loop, get rid of custom message function.
tries_declination -> tries_word
Move maxTries calculation to right after the limit is set, outside the game loop.
The Lua version seems to generate 6 as the first number with the limit of 10. Following numbers are generated randomly. It happens with the latest Windows interpreter, have to investigate.
tries_declination -> tries_word
Move maxTries calc out of game loop.
Move maxTries calculation out of the game loop. Get rid of the evaluate() function, as it's only called from one place.
Function call might be unnecessary complexity. Fix maxTries variable name and where it's calculated.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.