Summary: It is found that when user tries to input the chess to move, they found that there was no coordinate for them to refer to. Steps to Reproduce: 1. Run the program 2. Input command "new game" Actual Result: A chessboard without coordinate will be printed. Expected Result: A chessboard with coordinate should be printed
The problem is located in printChessBoard() function in ChessBoard class, I add the coordiante to it, problem solved
(In reply to DUAN Longteng from comment #0) > Summary: > It is found that when user tries to input the chess to move, they found that > there was no coordinate for them to refer to. > > Steps to Reproduce: > 1. Run the program > 2. Input command "new game" > > Actual Result: > A chessboard without coordinate will be printed. > > Expected Result: > A chessboard with coordinate should be printed The new chessboard looks like: 3 chess chess chess 2 chess chess chess 1 chess chess chess 0 chess chess chess 0 1 2