Esempio n. 1
0
 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);
 }
Esempio n. 2
0
 public void PlacePiece(int color, int x, int y)
 {
     var bt = new BoardTraverser(_board);
     bt.FillPosition(color, x, y);
 }