qu10wenhao / numguess Goto Github PK
View Code? Open in Web Editor NEWp1
p1
To begin with, I think your program is correct and I really appreciate the way you create three random numbers in your program. Nevertheless, I guess you should make some changes on the format to shorten your program. What's more, you'd better declare all the variables at the very beginning of the function 'main'.
Anyway, I suppose you have done well in this task.
In general, I think you've done well in this program.
The names of the variables are meaningful. There are notes which explain both the meaning of variables and the process of the game. There are also several blank lines among different parts of the program. The biggest difference between your program and others is that you use more loops, which are useful and effective when dealing with more numbers.
However, I don't quite understand the existence of the first "if" statement. I wonder if you've forgotten to delete it when changing the "if" statement to a "do-while" loop. Another problem is that the notes seem kind of untidy. But I guess this is because you use Chinese to write the notes. So it's not totally your fault.
Well, anyway, this is really a good job!
For me, the way to achieve the function used by the developer is quite straightforward and can be quite easy to understand. The developer also adds appropriate notes to his program so that I can quickly get his point. The program proves to be quite effective and efficient after my several attempts of input. All the codes are in clear format.
Well done!
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.