Bug 736 - Wrong queen notation when printing board
Summary: Wrong queen notation when printing board
Status: RESOLVED FIXED
Alias: None
Product: Chess Game - Group 24
Classification: Unclassified
Component: Chess (show other bugs)
Version: unspecified
Hardware: PC Mac OS
: --- trivial
Assignee: gsalter2-c
URL:
Depends on:
Blocks:
 
Reported: 2022-11-28 00:12 HKT by gsalter2-c
Modified: 2022-11-28 14:34 HKT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description gsalter2-c 2022-11-28 00:12:52 HKT
Steps to reproduce:
1. Execute App.java
2. Make any valid moves

Expected Results: 
For example, first move is d4, the console should print the following board state:

  ABCDEFGH
0 RNBQNBNR
1 PPP PPPP
2         
3    P    
4         
5         
6 pppppppp
7 rnbqnbnr

Actual Result:
The console outputs:
  ABCDEFGH
0 RNBKNBNR
1 PPP PPPP
2         
3    P    
4         
5         
6 pppppppp
7 rnbknbnr
Comment 1 gsalter2-c 2022-11-28 00:15:31 HKT
Reason:
Notation for queen was incorrect, it was "n" and "N" for black and white queen respectively, while it should be "q" and "Q".

Resolution:
Modify the notation for queen to "q" and "Q" for black and white players in Queen.java.