Introduction - If you have any usage issues, please Google them yourself
(1) The first call Chessboard type chessboard properties initBoard () and printBoard () method to initialize and print the board. (2) to obtain user input the console. (3) and then call this class isValid () method to verify the legitimacy of player input, if the input is not valid, return to step 2 to continue, otherwise to step 4. (4) under the pawn position players assigned to " ●" . (5) calls isWon (int posX, int posY, String chessman) to determine whether the player wins. If the player wins, then call isReply () method outputs information to re-ask the players if the game, if a player enter y, then return to step 1 and start again. (6) calling computerDo () method of a computer generated random x, y coordinates, and the board [x] [y] is assigned " ○" . If the computer wins, then call isReply () method outputs information to re-ask the players if the game, if a player enter y, then return to step 1 to start again, otherw