These are code academy practice projects(JavaScript,C#,python & Java)
This is a small guessing game.I have used JavaScript Functions to simulate the game.
- generateTarget() function will be called at the start of each new round in order to generate the new secret target number.
- compareGuesses() function will be called each round to determine which guess is closest to the target number.
- updateScore() function will be used to update the winner's score after each round.
- advanceRound() function will update the round number after each round.
In this program computer will generate a random number and switch statement is used to output a random piece of advice.
Here I am using python functions to simulate games of chance.The following games are implemented in this python project a) flipping-coin b) cho-Han c) random picking card d) roulette
Here in this project, trainer and pokemon classes are implemented. The trainer with his pokemon attacks another trainer's pokemon.
In this project, used C# methods to create a game in console. In the game, you control the character with the keyboard. Up moves the character up, left moves the character left, etc. Close the game by pressing Q or CTRL + C.
- UpdatePosition() method will be used to change the position of the character based on keyboard input.
- UpdateCursor() method will allow the player icon to change with each keypress.
- KeepInBounds() method Without this method, hitting the boundaries will break the game.
- DidScore() method will allow the score to increase if the character hits the @ object.