InsanichessGame constructor
InsanichessGame({
- required String id,
- required InsanichessPlayer whitePlayer,
- required InsanichessPlayer blackPlayer,
- required InsanichessTimeControl timeControl,
Constructs a fresh game with initial position.
Implementation
InsanichessGame({
required this.id,
required this.whitePlayer,
required this.blackPlayer,
required this.timeControl,
}) : remainingTimeWhite = timeControl.initialTime,
remainingTimeBlack = timeControl.initialTime,
timesSpentPerMove = <Duration>[],
super();