MCPcopy Create free account
hub / github.com/asweigart/PythonStdioGames / isOnBoard

Function isOnBoard

src/gamesbyexample/reversegam.py:138–140  ·  view source on GitHub ↗
(x, y)

Source from the content-addressed store, hash-verified

136
137
138def isOnBoard(x, y):
139 # Returns True if the coordinates are located on the board.
140 return x >= 0 and x <= 7 and y >= 0 and y <= 7
141
142
143def getBoardWithValidMoves(board, tile):

Callers 1

isValidMoveFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected