与模型在 9×9 棋盘上轮流下五子棋,每步后打印带坐标的棋盘。
我们来玩五子棋。游戏目标是在一个 9×9 的棋盘上,横向、纵向或斜向连成五子。每次落子后,请打印棋盘(行列坐标轴分别为 ABCDEFGHI / 123456789;用 x 和 o 表示双方落子,- 表示空位)。你我轮流落子,即在我每次落子之后,由你落下一子。你不可将棋子落在已有棋子的位置上。在落子前,不得修改原始棋盘。现在请走第一步。
Let's play Gomoku. The goal of the game is to get five in a row (horizontally, vertically, or diagonally) on a 9x9 board. Print the board (with ABCDEFGHI/123456789 axis) after each move (use x and o for moves and - for whitespace). You and I take turns in moving, that is, make your move after my each move. You cannot place a move an top of other moves. Do not modify the original board before a move. Now make the first move.