(board, position)
return all([len(board) > x, len(board[0]) > y, x >= 0, y >= 0])
Determines if a positions is on the board
Determines if a positions is on the board
Determines if a positions is on the board
def position_on_board(board, position):
    '''Determines if a positions is on the board'''
    x, y = position
    return all([len(board) > x, len(board[0]) > y, x >= 0, y >= 0])
def position_on_board ( board , position ) : x , y = position return all ( [ len ( board ) > x , len ( board [ 0 ] ) > y , x >= 0 , y >= 0 ] )