Bug 721 - Cannot perform move command for human player
Summary: Cannot perform move command for human player
Status: RESOLVED FIXED
Alias: None
Product: Group 9
Classification: Unclassified
Component: HumanPlayer (show other bugs)
Version: 1
Hardware: PC Windows
: High critical
Deadline: 2022-11-20
Assignee: cklo36-c
URL:
Depends on:
Blocks:
 
Reported: 2022-11-20 16:36 HKT by choy kai chuen
Modified: 2022-11-20 16:53 HKT (History)
0 users

See Also:


Attachments
HumanPlayer class (39.73 KB, image/png)
2022-11-20 16:36 HKT, choy kai chuen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description choy kai chuen 2022-11-20 16:36:36 HKT
Created attachment 125 [details]
HumanPlayer class

The Scanner in human player is not set, so when the player perform move command, there will be a null pointer exception
Comment 1 cklo36-c 2022-11-20 16:53:54 HKT
Confirmed & fixed.

commit 7cb556a3388bca2079d333d1c91aab5fe59a2e6a remove deprecated the use of KeyboardIn class but didn't assign value the instance field `private Scanner kb`