public void ChooseAsymmetricTest() { Board b = new Board(new Vector2Int(6, 6)); PlayerMachine pm = new PlayerMachine("pete"); pm.AIType = PlayerAIType.ASYMMETRIC; List <Tile> testTiles = TestTile.GenerateTiles(); Hand h = new Hand(); h.AddToHand(testTiles [0]); h.AddToHand(testTiles [4]); h.AddToHand(testTiles [5]); Assert.AreEqual(testTiles[0], pm.PlayTurn(b, h.Pieces, b.CurrentDeck.Pieces.Count)); }
public void ChooseSymmetricTest() { Administrator a = new Administrator(); Board b = new Board(new Vector2Int(6, 6)); a.SetBoard(b); PlayerMachine pm = new PlayerMachine("pete"); a.AddNewPlayer(pm); pm.AIType = PlayerAIType.SYMMETRIC; List <Tile> testTiles = TestTile.GenerateTiles(); Hand h = new Hand(); h.AddToHand(testTiles [0]); h.AddToHand(testTiles [4]); h.AddToHand(testTiles [5]); //4 or 5 both work. Assert.AreEqual(testTiles[5], pm.PlayTurn(b, h.Pieces, b.CurrentDeck.Pieces.Count)); }