Bug 648

Summary: Player time delay are the same as the AI.
Product: CS3343 2021/22 Group16 Greedy Snake Reporter: Baron Qu <zhiyanqu2-c>
Component: Action PackageAssignee: Baron Qu <zhiyanqu2-c>
Status: RESOLVED FIXED    
Severity: enhancement CC: ruoxinli3-c
Priority: ---    
Version: Ver 3.1   
Hardware: PC   
OS: Windows   
Attachments: Code implementation

Description Baron Qu 2021-12-05 17:52:42 HKT
When starting the game, choose 1 key, the player snake delay just the same as the AI snake delay, therefore, the player snake would move very fast, it's very hard to operate the snake.
Comment 1 Baron Qu 2021-12-05 17:54:27 HKT
For this problem, we use the timer's built-in function setDelay() to reset the time delay after we choose the game mode.
Comment 2 Baron Qu 2021-12-05 17:59:47 HKT
Created attachment 102 [details]
Code implementation