Skip to content

Instantly share code, notes, and snippets.

@ElemarJR
Created January 12, 2011 12:21
Show Gist options
  • Save ElemarJR/776090 to your computer and use it in GitHub Desktop.
Save ElemarJR/776090 to your computer and use it in GitHub Desktop.
Diagonal NEA1H8
public void ctor_DiagonalsNEA1H8()
{
Square[] squares = new Square[] {
Squares.A1,
Squares.B2,
Squares.C3,
Squares.D4,
Squares.E5,
Squares.F6,
Squares.G7,
Squares.H8
};
var expected = Squares.A1 |
Squares.B2 |
Squares.C3 |
Squares.D4 |
Squares.E5 |
Squares.F6 |
Squares.G7 |
Squares.H8;
for (int i = 0; i < squares.Length; i++)
{
var d = new DiagonalNE(squares[i]);
d.Bitmask.Should().Be(expected.Value);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment