Skip to content

NikunjDwivedi/casino-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

casino-game

In this implementation, the Casino Game class encapsulates the logic and state of the game, including the answer, the current guess, the number of guesses made, and whether the player has won. The constructor initializes the game by generating a random answer, and the play method prompts the player for guesses and provides feedback until the player either guesses correctly or runs out of guesses. Finally, the main function creates an instance of CasinoGame and calls the play method to start the game

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages