白子已经建造了一条被保护的道路,一次一个前哨,恰恰进入黑棋的阵营的核心之内!
The White pieces have built a protected road, one outpost at a time, right into the heart of Black's camp!
然后,若要断定哪一些步伐会被自己的黑棋子阻挡,你可以获取一个记录所有黑棋的位棋盘,求它的补(非操作Not),然后把它与你的黑马步法位棋盘做与运算(AND)。
Then, to decide which moves are blocked by Black's own pieces, you take a bitboard of all of Black's pieces, take the complement (the NOT operator) and then AND it to your knights' moves bitboard.
然后,若要断定哪一些步伐会被自己的黑棋子阻挡,你可以获取一个记录所有黑棋的位棋盘,求它的补(非操作Not),然后把它与你的黑马步法位棋盘做与运算(AND)。
Then, to decide which moves are blocked by Black's own pieces, you take a bitboard of all of Black's pieces, take the complement (the NOT operator) and then AND it to your knights' moves bitboard.
应用推荐