Bug 715 - The result returned by getresult function is not true when Red player win
Summary: The result returned by getresult function is not true when Red player win
Status: RESOLVED FIXED
Alias: None
Product: Group 9
Classification: Unclassified
Component: DefaultGameBoard (show other bugs)
Version: 1
Hardware: PC Windows
: High major
Deadline: 2022-11-21
Assignee: cklo36-c
URL:
Depends on:
Blocks:
 
Reported: 2022-11-19 11:09 HKT by choy kai chuen
Modified: 2022-11-20 00:42 HKT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description choy kai chuen 2022-11-19 11:09:33 HKT
When testing with the test function "Should_ReturnRedWin_WhenTheMoveCommandsIsPerformed", if the red player win, the getResult() function return null instead of Red disc.
Comment 1 cklo36-c 2022-11-20 00:42:37 HKT
I do find the bug.
It is caused by a wrong parameter of checkDownDiagonal() call in getResult().
Fixed.