private static void ShowBorad(Board board) { Console.WriteLine(" ABCDEFGH"); for (int i = 1; i <= 8; i++) { Console.Write(" " + i); for (int j = 1; j <= 8; j++) { if (board.GetCell(new CellPoint(j, i)).Stone == null) { Console.Write("・"); } else { if (board.GetCell(new CellPoint(j, i)).Stone.Color == StoneColor.Black) { Console.Write("○"); } else { Console.Write("●"); } } if (j == 8) { Console.WriteLine(""); } } } }
private void SetInitialPosition() { Board.GetCell(new CellPoint(4, 4)).SetStone(new Stone(StoneColor.Black)); Board.GetCell(new CellPoint(5, 5)).SetStone(new Stone(StoneColor.Black)); Board.GetCell(new CellPoint(4, 5)).SetStone(new Stone(StoneColor.White)); Board.GetCell(new CellPoint(5, 4)).SetStone(new Stone(StoneColor.White)); }