コード例 #1
0
ファイル: LogicBoard.cs プロジェクト: AleksandrPanov/Checkers
 public LogicBoard()
 {
     cell = new LogicCell[8, 8];
     for (int i = 0; i < 8; i++)
     {
         for (int j = 0; j < 8; j++)
         {
             cell[i, j] = new LogicCell();
         }
     }
 }
コード例 #2
0
ファイル: Checker.cs プロジェクト: AleksandrPanov/Checkers
 private bool CanBeEaten(LogicCell checker, LogicCell nextCell)
 {
     return(checker.GetColor() != Color.empty && color != checker.GetColor() && nextCell.isEmpty());
 }
コード例 #3
0
ファイル: LogicBoard.cs プロジェクト: AleksandrPanov/Checkers
 public void DeleteCheckerFromBoard(int x, int y)
 {
     cell[x, y] = new LogicCell();
 }