Bug 748 - Possible position generated for horse is not as expected
Summary: Possible position generated for horse is not as expected
Status: RESOLVED FIXED
Alias: None
Product: CS3343 Group 26 XiangQi Game
Classification: Unclassified
Component: ChessBoard (show other bugs)
Version: unspecified
Hardware: PC All
: --- major
Assignee: likslee2-c
URL:
Depends on:
Blocks:
 
Reported: 2022-11-28 23:11 HKT by Tracy Puk
Modified: 2022-11-29 02:59 HKT (History)
0 users

See Also:


Attachments
Possible position generated for horse is not as expected (75.91 KB, image/jpeg)
2022-11-28 23:11 HKT, Tracy Puk
Details

Note You need to log in before you can comment on or make changes to this bug.
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.