Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace Blackjack
- {
- class Hand
- Cards cards;
- class Card
- int number;
- typeOfCard hearts, etc...;
- interface Dealer
- interface Player
- class Round
- List<Player> players;
- Dealer dealer;
- // Those next two aren't probably correct. I'd need to do TDD and check how exactly to implement this
- clss User implements Player
- clss DealerAI implements Dealer
- class GameLogic
- {
- }
- class or interface Rule
- class method:
- abstract appliesTo(Hand hand)
- instance method:
- Hand handToValue;
- abstract value
- class Bust : Rule
- class DefaultHand : Rule
- class Blackjack : Rule
- class Game
- // Maybe other stuff... Current statitics for each player?
- Round currentRound;
- }
- class Application
- List<Blackjack::User> users;
- Blackjack::Game game;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement