Test complet de la fonction isLegal() de AvalamBoard #24

Merged
Hugo RABAN merged 5 commits from tests into master 2026-02-05 16:16:54 +01:00
Showing only changes of commit f43361a48f - Show all commits

View File

@@ -205,6 +205,7 @@ public class AvalamBoard extends AbstractBoard {
Tower dst = grid[xT][yT];
if (src == null || dst == null) return false;
if (p.getPlayer() != getCurrentPlayer()) return false;
if (src.getColor() != colorForPlayer(getCurrentPlayer())) return false;
if (!areAdjacent(xF, yF, xT, yT)) return false;
if (src.getColor() == dst.getColor()) return false;