コード例 #1
0
ファイル: DamePawn.cs プロジェクト: Dawidsoni/checkers-game
 protected override bool CanCapture(Dot pos, BoardState boardState, Dot dir)
 {
     return(GetCapturedPawn(pos, boardState, dir) != null);
 }
コード例 #2
0
 protected PawnMove GetNoneCaptureMove(Dot pos, BoardState boardState)
 {
     return(new PawnMove(pos, this, IsDameLanePos(pos, boardState)));
 }