public bool TakingExists() { foreach (var draught in State.Arrangement) { var draughtInPlay = new ItemInPlay(draught, State); if (WhoseMove == draught.Colour() && draughtInPlay.TakingExists()) { return(true); } } return(false); }
public Paths SimpleMoves() { var moves = new Paths(); foreach (var draught in State.Arrangement) { var draughtInPlay = new ItemInPlay(draught, State); if (WhoseMove == draught.Colour()) { moves.AddMoves(draughtInPlay.Moves()); } } return(moves); }
public Paths Takings() { var moves = new Paths(); foreach (var draught in State.Arrangement) { var draughtInPlay = new ItemInPlay(draught, State.Clone()); if (WhoseMove == draught.Colour() && draughtInPlay.TakingExists()) { moves.AddMoves(draughtInPlay.Moves()); } } return(moves); }