Skip to content

My attempt at the Race Track Simulator lab from Head First C#

License

Notifications You must be signed in to change notification settings

eddyharrington/Race-Track-Simulator

Repository files navigation

Race Track Simulator

This is my Bob Ross inspired "A Day at the Races" lab attempt from O'Reilly's Head First C# book. It's a squirrel race gambling and betting simulator, where 3 gamblers can place bets on the squirrel they think will win the race for the potential payout of double-or-nothing! There is a minimum bet of $5 and a maximum bet of $15.

GIF Demo of Bob Ross Race Track Simulator

Instructions

  1. Navigate to the repo
  2. Clone or download the repo locally
  3. Build the solution in Visual Studio
  4. Select a gambler
  5. Enter a bet amount
  6. Enter the squirrel number that you think will win
  7. Click the Race! button to start the race
  8. Collect your wins or losses!

Discussion

This was a learning exercise from the book that I thought would be more fun to customize a little with everyone's friend, Bob Ross. The book provides a summary of what the tool should do, information about the classes/methods needed, and some tips to keep in mind. However, it does not provide the source code for the lab. Although the book doesn't cover unit testing, I used this project as practice and created a number of tests that validate the class functions.

TODO

  • Write tests
  • Get help and 2nd opinions on the areas noted with TODO in the source code

About

My attempt at the Race Track Simulator lab from Head First C#

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages