Skip to content

Instantly share code, notes, and snippets.

@waspyfaeleith
Created July 27, 2016 14:13
Show Gist options
  • Save waspyfaeleith/c8b0dd0eee3d5bbaa8af15c9e0b3deff to your computer and use it in GitHub Desktop.
Save waspyfaeleith/c8b0dd0eee3d5bbaa8af15c9e0b3deff to your computer and use it in GitHub Desktop.

Homework

Tonight's homework is to think about how you would implement the game of 3 Card Brag (the rules of which can be found here: https://en.wikipedia.org/wiki/Three_card_brag ) in Java. Betting is NOT required.

At this stage we are only asking you to PLAN how you would do this i.e. think about which classes you think you would need, any interfaces you would use etc.

Think about the logic you would need to find the winning player and how to compare hands.

Remember to think about what tests you would need.

IF YOU ARE REALLY AMBITIOUS then you can think about adding betting to the game.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment