Skip to content
GitLab
Explore
Sign in
Anthony Jacob
python-snake
Compare revisions
a2064b6f284da8917164677151b1375f6f494e48 to 22d2fa246059af79d1cce0bcaea5ce4663ca76a9
Commits on Source (2)
add comment
· c9c65806
Anthony Jacob
authored
Nov 09, 2022
c9c65806
Merge branch 'main' of gitlab.anthony-jacob.com:anthony.jacob/python-snake into main
· 22d2fa24
Anthony Jacob
authored
Nov 09, 2022
22d2fa24
Hide whitespace changes
Inline
Side-by-side
pythonsnake/model.py
View file @
22d2fa24
...
...
@@ -80,6 +80,7 @@ class Game:
]
def
check_candy
(
self
)
->
bool
:
#if snake head and candy at the same position
if
(
self
.
snake
.
coord
[
0
][
"
x
"
]
==
self
.
candy
.
X
and
self
.
snake
.
coord
[
0
][
"
y
"
]
==
self
.
candy
.
Y
...
...