GetMovesTwoSquaresForward() public method

public GetMovesTwoSquaresForward ( ) : IEnumerable
return IEnumerable
コード例 #1
0
 public void GetMovesTwoSquareForward_B7BlockedInB6_ReturnsNothing()
 {
     var bp = new BlackPawns(Bitboard.With.B7);
     var notblockers = Bitboard.With.B6.Build().Inverted;
     var moves = bp.GetMovesTwoSquaresForward(notblockers);
     moves.Should().Be.Empty();
 }
コード例 #2
0
 public void GetMovesTwoSquareForward_B7_ReturnsNormalB7B5()
 {
     var bp = new BlackPawns(Bitboard.With.B7);
     var moves = bp.GetMovesTwoSquaresForward();
     moves.Should().Have.SameSequenceAs(new Move("B7", "B5", MoveTypes.Normal));
 }
コード例 #3
0
 public void GetMovesTwoSquareForward_B6_ReturnsNothing()
 {
     var bp = new BlackPawns(Bitboard.With.B6);
     var moves = bp.GetMovesTwoSquaresForward();
     moves.Should().Be.Empty();
 }