private static char CellInfo(Cell x, ref BitBoard positions, ref BitBoard moves) { if (positions.Get(x.M, x.N) && moves.Get(x.M, x.N)) { return('?'); } else if (positions.Get(x.M, x.N)) { return('O'); } else if (moves.Get(x.M, x.N)) { return('x'); } else { return('.'); } }
private Obstacle ProbeCell(int m, int n) { if (friends.Get(m, n)) { return(Obstacle.Friend); } if (enemies.Get(m, n)) { return(Obstacle.Enemy); } return(Obstacle.None); }
public void SimpleAnalyse() { ReadFiguresPositions(); CalcFiguresMovesMaps(); isKingAttacked = BMovesSum.Get(KingPosition.M, KingPosition.N); }