Bug 748

Summary: Possible position generated for horse is not as expected
Product: CS3343 Group 26 XiangQi Game Reporter: Tracy Puk <tcpuk2-c>
Component: ChessBoardAssignee: likslee2-c
Status: RESOLVED FIXED    
Severity: major    
Priority: ---    
Version: unspecified   
Hardware: PC   
OS: All   
Attachments: Possible position generated for horse is not as expected

Description Tracy Puk 2022-11-28 23:11:47 HKT
Created attachment 142 [details]
Possible position generated for horse is not as expected

- Steps to reproduce
1. start the game
2. player selects RC to move from h2 to h1
3. RC block RH way

- Expected result
The possible moves for RH at h0
[]


- Actual result
The possible moves for RH at h0
[g2]
Comment 1 likslee2-c 2022-11-29 02:59:47 HKT
Updated for loop statement in function validatePosition to solve the bug.