Bug 738

Summary: Incorrect board rotation
Product: Chess Game - Group 24 Reporter: gsalter2-c
Component: GUIAssignee: gsalter2-c
Status: RESOLVED FIXED    
Severity: major CC: gsalter2-c
Priority: ---    
Version: unspecified   
Hardware: PC   
OS: Mac OS   

Description gsalter2-c 2022-11-28 01:07:08 HKT
Steps to Reproduce: 
1. Run App.java
2. Make a valid move on white's turn
3. Make a valid move on black's turn

Expected results:
Initially on white's turn, the king is supposed to be on the d file, and the queen on the e-file. 

Actual results:
After making a valid move on white's turn, the pieces are correctly displayed on black's turn. From this, we found out that pieces on white's turn are horizontally flipped.
Comment 1 gsalter2-c 2022-11-28 01:11:37 HKT
Reason:
Board is horizontally flipped on white's turn.

Resolution:
Modify board rotation logic to flip board vertically after white's turn, and flip board horizontally after black's turn.