예제 #1
0
 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('.');
     }
 }
예제 #2
0
 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);
 }
예제 #3
0
 public void SimpleAnalyse()
 {
     ReadFiguresPositions();
     CalcFiguresMovesMaps();
     isKingAttacked = BMovesSum.Get(KingPosition.M, KingPosition.N);
 }