public void Start() { this.players = new Players(NumOfPlayers); TileInHand = stack.Pop(); players.AddPlayer(new HumanPlayer("PrvniHrac", PlayerColor.Y)); players.AddPlayer(new HumanPlayer("DruhyHrac", PlayerColor.B)); players.AddPlayer(new HumanPlayer("TretiHrac", PlayerColor.G)); players.AddPlayer(new HumanPlayer("CtvrtyHrac", PlayerColor.V)); players.AddPlayer(new HumanPlayer("PatyHrac", PlayerColor.O)); players.AddPlayer(new HumanPlayer("SestyHrac", PlayerColor.R)); TileController.Instance.DisplayTileInHand(TileInHand.Type, players.GetPlayerOnMove().Color); }
public void ReturnToStackTest() { TilesStack ts = new TilesStack(new TileRepository(config)); int i = 1000; while (i > 0) { Tile t = ts.Pop(); Assert.NotNull(t); ts.ReturnToStack(t); Tile s = ts.Pop(); Assert.NotNull(s); if (t != s) { return; } } Assert.Fail(); }