guitarpawat / guessinggame Goto Github PK
View Code? Open in Web Editor NEWLab01 OOP2
Lab01 OOP2
getHint() did not do anything, it just return a string. Why you need to call it.
https://github.com/guitarpawat/GuessingGame/blob/master/src/lab01/Game.java#L41-L42
Btw, Game should not print anything to console. It should be a responsibility of GameConsole. Could you make it better ?
and line:41 and line:42 is kind of indentation error. if-else without bracket will performs only 1 statement under the condition statement.
There should be a hint about the range of possible number.
For example, I'm thinking of a number between 1 and 20
Also, you should leave a blank line between methods, and the import statement should be under package statement but over class
package ..;
import ..;
import ..;
/**
* ...
*/
public class Example {
}
if your .java file has the package named "lab01", you should put your .java file inside "lab01" folder (src/lab01/
)
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.