示例#1
0
文件: Board.cs 项目: stigok/Othello
 private void PlaceInitialPieces()
 {
     var bt = new BoardTraverser(_board);
     bt.FillPosition(WHITE, WIDTH / 2, HEIGHT / 2);
     bt.FillPosition(WHITE, (WIDTH / 2) - 1, (HEIGHT / 2) - 1);
     bt.FillPosition(BLACK, (WIDTH / 2) - 1, HEIGHT / 2);
     bt.FillPosition(BLACK, WIDTH / 2, (HEIGHT / 2) - 1);
 }
示例#2
0
文件: Board.cs 项目: stigok/Othello
 public void PlacePiece(int color, int x, int y)
 {
     var bt = new BoardTraverser(_board);
     bt.FillPosition(color, x, y);
 }