
UP = ‘up’
DOWN = ‘down’
FORWARD = ‘forward’
BACKWARD = ‘backward’
FORWARD_FACTOR = 1
DOWN_FACTOR = 2
BACKWARD_FACTOR = 3
UP_FACTOR = 4
THRESHOLD = 5
BONUS = 12
P1 = ‘player one’
P2 = ‘player two’
P1_WINS = ‘player one wins’
P2_WINS = ‘player two wins’
TIE = ‘tie game’
# Helper functions.
def get_column(puzzle: str, col_num: int) -> str:
puzzle_list = puzzle.strip().split(‘n’)
column = ‘ ‘
for row in puzzle_list:
column += row[col_num]
return column
def get_row_length(puzzle: str) -> int:
return len(puzzle.split(‘n’)[0])
def contains(text1: str, text2: str) -> bool:
return text2 in text1
Given the helper functions, I need to program thecheck_guess function. No inputs, or loops.
Thank you
Show transcribed image text
Expert Answer
An answer will be send to
PayPal Gateway not configured
PayPal Gateway not configured