public void TestBishopMovesAll() { for (int i = 0; i < 64; i++) { var b = new Chess.Base.Board(false); b.State[i] = Chess.Base.Colors.Val(Chess.Base.Piece.Bishop, Chess.Base.Color.White); var movesBasic = Chess.Base.Moves.GetMoves(b, i); movesBasic = movesBasic.OrderBy(x => x).ToArray(); var movesFast = Bishop.Read(i, 0); var list = Bitboard.Bitboard_BitList(movesFast); list = list.OrderBy(x => x).ToArray(); Assert.AreEqual(movesBasic.Length, list.Length); for (int j = 0; j < movesBasic.Length; j++) { Assert.AreEqual((int)movesBasic[j], (int)list[j]); } } }
public void TestRookInitializeAndRead() { Bishop.Load(); var r = Bishop.Read(27, (ulong)0); }