Notes
This function is in beta test. Please help improve it in the issues
here.
Your Answer
Input the number of rows and columns of the game board: Invalid input! The number of rows and columns must in 5-99. Input the number of rows and columns of the game board: Invalid input! The number of rows and columns must in 5-99. Input the number of rows and columns of the game board: Invalid input! The number of rows and columns must in 5-99. Input the number of rows and columns of the game board: Invalid input! The number of rows and columns must in 5-99. Input the number of rows and columns of the game board: 1 2 3 4 5 1 . . . . . 2 . . . . . 3 . . . . . 4 . . . . . 5 . . . . . Successfully initialized! The game begins! Now is the Black turn: 1 2 3 4 5 1 . . . . . 2 . . . . . 3 . . B . . 4 . . . . . 5 . . . . . Now is the White turn: 1 2 3 4 5 1 . . . . . 2 . . . . . 3 . W B . . 4 . . . . . 5 . . . . . Now is the Black turn: Invalid Input! The position has been occupied. Now is
JOJ Answer
Input the number of rows and columns of the game board: Invalid input! The number of rows and columns must in 5-99. Input the number of rows and columns of the game board: Invalid input! The number of rows and columns must in 5-99. Input the number of rows and columns of the game board: Invalid input! The number of rows and columns must in 5-99. Input the number of rows and columns of the game board: Invalid input! The number of rows and columns must in 5-99. Input the number of rows and columns of the game board: 1 2 3 4 5 1 . . . . . 2 . . . . . 3 . . . . . 4 . . . . . 5 . . . . . Successfully initialized! The game begins! Now is the Black turn: 1 2 3 4 5 1 . . . . . 2 . . . . . 3 . . B . . 4 . . . . . 5 . . . . . Now is the White turn: 1 2 3 4 5 1 . . . . . 2 . . . . . 3 . W B . . 4 . . . . . 5 . . . . . Now is the Black turn: Invalid Input! The position