コード例 #1
0
        }                                   // number of turns played

        public Game(string player1name, string player2name)
        {
            Player player1 = new Player(player1name);
            Player player2 = new Player(player2name);

            var Cards = DeckCreator.CreateCards(); // returns a shuffled deck

            var deck = player1.Deal(Cards);        // returns player2's deck and player1 keeps his

            player2.Deck = deck;
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: willjon2000/KrigCardGame
 static void Main(string[] args)
 {
     DeckCreator.CreateCards();
 }