Bug 738 - Incorrect board rotation
Summary: Incorrect board rotation
Status: RESOLVED FIXED
Alias: None
Product: Chess Game - Group 24
Classification: Unclassified
Component: GUI (show other bugs)
Version: unspecified
Hardware: PC Mac OS
: --- major
Assignee: gsalter2-c
URL:
Depends on:
Blocks:
 
Reported: 2022-11-28 01:07 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 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.