MCPcopy Index your code
hub / github.com/rawpython/remi / coord_in_map

Method coord_in_map

examples/minefield_app.py:166–169  ·  view source on GitHub ↗
(self, x, y, w=None, h=None)

Source from the content-addressed store, hash-verified

164 super(MyApp, self).on_close()
165
166 def coord_in_map(self, x, y, w=None, h=None):
167 w = len(self.mine_matrix[0]) if w is None else w
168 h = len(self.mine_matrix) if h is None else h
169 return not (x > w - 1 or y > h - 1 or x < 0 or y < 0)
170
171 def new_game(self, widget):
172 self.time_count = 0

Callers 2

build_mine_matrixMethod · 0.95
fill_void_cellsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected