-
Notifications
You must be signed in to change notification settings - Fork 25
Added Casino utility #47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
I will code review this |
|
I will code review this implementation |
|
I will also code review this |
|
Verification Testing
Code Walkthrough
Formatting Overall High Level Checks:
Code Checks:
|
|
Verification Testing
Craps
Blackjack
Slot
Code Walkthrough
Formatting High Level Checks:
Code Checks:
|
|
Verification: This does indeed create a new user space utility called casino that when run does infact create a casino in our operating system space with games craps, blackjack, and slots. Testing: There were no clear intructions for exactly how to test your application. I don't believe you need exact tests for your user program casino as there is no exact tests as you can decide between 4 options 3 being games. Also its easy to test and figure out how to play each game due to casino.md in docs as there is step by step instructions on how to play and how you win/lose. After testing with multiple inputs in each of your games I noticed a few errors
Total profit/loss: -1000
|
|
I was hoping this had a feature that detected me playing it and always let me win, but no luck there. It works great. Animations are good, it's got ASCII art, but yes, the three reviewers are right: you need to check to make sure the player can actually bet the amount they specify. Somehow I won millions, lost billions and went broke, was given $1000, went broke again, and then somehow when I cashed out I was at -$1000. Overall, great job. 4.75/5 |
This pull request introduces a new user-space utility called Casino, which adds three classic gambling games to FogOS:
Craps:
- A simple dice game where players roll two dice and try to hit winning numbers or their “point.”
Blackjack:
- A card game where players compete against the dealer to get as close to 21 as possible without going over. Features include the ability to split pairs and proper dealer behavior (dealer shows one card until the player's turn ends).
Slots:
- A chance-based slot machine game with ASCII art symbols and animated reels for visual effect.
The utility includes input validation to ensure players only make valid moves, proper game logic for splitting hands in blackjack, and a cool animation for the slot machine.