Bug 649

Summary: The AI snake head could impale it's body
Product: CS3343 2021/22 Group16 Greedy Snake Reporter: Baron Qu <zhiyanqu2-c>
Component: Model sectionAssignee: Baron Qu <zhiyanqu2-c>
Status: RESOLVED FIXED    
Severity: enhancement CC: ruoxinli3-c
Priority: ---    
Version: Ver 3.0   
Hardware: PC   
OS: Windows   
Attachments: Code implementation

Description Baron Qu 2021-12-05 18:02:25 HKT
When the AI snake self-running, I notice that the snakehead has passed through its body, So the self-death detection does not works well.
Comment 1 Baron Qu 2021-12-05 18:08:51 HKT
Created attachment 103 [details]
Code implementation

The reason is implicit, therefore I just change the way to detect whether the snakehead collides its body or not.
Comment 2 Baron Qu 2021-12-05 18:09:30 HKT
Just change the self-death detection method.