Android Number Guess Game app: https://play.google.com/store/apps/details?id=com.wbrawner.numberguess
.gitignore | ||
README.md |
Number-Guessing Game
A simple game where the computer picks a number and the player must guess what it is.
Gameplay:
- Computer generates random number
- Computer starts "I'm thinking of a number..."
- Player inputs number
- Computer responds higher, lower, or exact for input
- 2 & 3 repeat until player guesses number
- Computer says how many guesses it took
Requirements:
- player
- ability to give input
- player's guessed numbers
- computer
- computer's random number
- ability to receive input
- number comparison calculations
- give reply on number
Future Challenges
Ask player if they want to play again- Reverse roles: human picks number and AI guesses
- Multiplayer: play with two humans
- Spectator: play with two AIs
- Menu: select between different game modes
- Build a GUI
Contribution
Add the files you changed:
git add ngg.php
Commit the new changes:
git commit -m "Fixed syntax error"
Push the changes
git push
Get the latest code
git pull
See the changes you've made since your last commit (press Q to exit if it's long enough to scroll)
git diff
See which branch you're on now
git branch
Switch to a different branch to see that language's work:
git checkout php