コード例 #1
0
 public void StartTurnSequenceTest()
 {
     var target = new AlCabohneGame(players);
     target.StartGame();
     var actual = target.StartTurnSequence(players[0]);
     Assert.AreEqual(target.GameIsOngoing, actual);
 }
コード例 #2
0
ファイル: MainClass.cs プロジェクト: vanDonselaar/Bohnanza
        static void Main()
        {
            //Start a Bohnanza game

            var players = new List<Player> {new BohnanzaPlayer("Henkie"), new BohnanzaPlayer("Pietje")};

            //Start a new game with Bohnanza as strategy
            IGameBehaviour gameBehaviour = new BohnanzaGame(players);

            gameBehaviour.StartGame();

            //Start a Al Cabohne game

            players = new List<Player> {new AlCabohnePlayer("Jaapie"), new AlCabohnePlayer("Vincent")};

            //Start a new game with Cabohne as strategy
            gameBehaviour = new AlCabohneGame(players);

            gameBehaviour.StartGame();
        }
コード例 #3
0
 public void AlCabohneGameConstructorTest()
 {
     var target = new AlCabohneGame(players);
     Assert.IsInstanceOfType(target, typeof(AlCabohneGame));
 }