Quarkus 3.40 on Java 25, built with the Maven wrapper. The engine is a line-by-line port of packages/mancala.js; a parity test replays games recorded with the TypeScript engine, including illegal moves, and compares every board, turn, error and the game JSON.
13 lines
268 B
Java
13 lines
268 B
Java
package app.playmancala.engine;
|
|
|
|
public interface GameRule {
|
|
default void onGameMoveStart(MancalaGame game, int index) {
|
|
}
|
|
|
|
default void onGameMove(MancalaGame game, int index) {
|
|
}
|
|
|
|
default void onGameMoveEnd(MancalaGame game, int index) {
|
|
}
|
|
}
|