draw snake

This commit is contained in:
2026-03-10 12:13:21 -05:00
parent e57300e673
commit 33db0eaaef
7 changed files with 83 additions and 11 deletions
-1
View File
@@ -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;