Пример #1
0
 public BlackJackGame(Deck deck, Player player, Dealer dealer)
 {
     _deck = deck;
     _player = player;
     _dealer = dealer;
     _decision = false;
     _gamestate = GameState.BETTING;
     _player.BetUp ();
 }
Пример #2
0
        public static void Main()
        {
            SwinGame.OpenGraphicsWindow("BlackJack", 800, 600);
            LoadResources ();
            Audio.PlayMusic (music);

            Dealer dealer = new Dealer();
            Deck deck = new Deck();
            Player player = new Player();
            BlackJackGame game = new BlackJackGame(deck, player, dealer);
            game.DealFirstTwoCards();

            while (false == SwinGame.WindowCloseRequested())
            {
                PlayerleUserInput (game);
                DrawGame (game);
                SwinGame.RefreshScreen(60);
            }
        }