mancala/src/common/CommonMancalaGame.ts

24 lines
666 B
TypeScript
Raw Normal View History

2022-05-02 00:43:12 +03:00
import { MancalaGame } from '../core/MancalaGame';
import { CommonBoard } from './CommonBoard';
2022-05-04 15:04:24 +03:00
import { GRClearBoardAtEnd } from './game_rules/GRClearBoardAtEnd';
2022-05-02 00:43:12 +03:00
import { GRLastStoneInBank } from './game_rules/GRLastStoneInBank';
import { GRLastStoneInEmptyPit } from './game_rules/GRLastStoneInEmptyPit';
export class CommonMancalaGame extends MancalaGame {
2022-05-05 23:04:10 +03:00
constructor(id: string, player1Id: string, player2Id: string) {
2022-05-05 23:50:26 +03:00
super(
id,
new CommonBoard(),
player1Id,
player2Id,
player1Id,
[
new GRLastStoneInEmptyPit(),
new GRLastStoneInBank(),
new GRClearBoardAtEnd()
],
[]
);
2022-05-02 00:43:12 +03:00
}
}