Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/asweigart/PythonStdioGames
/ getZombieAt
Method
getZombieAt
src/gamesbyexample/zombiebitefight.py:113–117 ·
view source on GitHub ↗
(self, x, y)
Source
from the content-addressed store, hash-verified
111
112
113
def
getZombieAt(self, x, y):
114
for
zombie in self.zombies:
115
if
zombie._x == x and zombie._y == y:
116
return
zombie
117
return
None
118
119
120
def
display(self):
Callers
2
__init__
Method · 0.95
runSimulationStep
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected