draw snake
This commit is contained in:
@@ -58,7 +58,6 @@ impl Snake {
|
||||
pub fn is_colliding_against_itself(&self) -> bool {
|
||||
let head_pos = self.body.position;
|
||||
let mut current_node = self.body.next.as_deref();
|
||||
|
||||
while let Some(node) = current_node {
|
||||
if node.position == head_pos {
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user