fin de l'initialisation d'un match et ajout du random aux commandes
All checks were successful
check main state / build (9.0.x) (push) Successful in 2m46s
All checks were successful
check main state / build (9.0.x) (push) Successful in 2m46s
This commit was merged in pull request #29.
This commit is contained in:
@@ -52,4 +52,16 @@ public class BoardLayoutTests
|
||||
BoardLayout layout = new BoardLayout(grid);
|
||||
Assert.Equal(PiecePosition.tile144, layout.FromTileIndex(144));
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckForestQuantities()
|
||||
{
|
||||
IHexagonalGrid grid = new HexagonalGridImpl();
|
||||
BoardLayout layout = new BoardLayout(grid);
|
||||
|
||||
int forest1Index = layout.ForestIndex(new AxialCoords(4, 2));
|
||||
Assert.Equal(0, forest1Index);
|
||||
int qteForest1 = layout.ForestQte(forest1Index);
|
||||
Assert.Equal(5, qteForest1);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user