def askforplayermove(playerturnboard) """asks the player which pit on their side of the board they select to sow seeds from returns the uppercase letter label of the selected pit as string "" while truekeep asking the player until they enter valid move ask the player to select pit on their side if playerturn =' ' print('player choose movea- (or quit)' elif playerturn =' ' print('player choose moveg- (or quit)' response input(''upper(strip( check if the player wants to quit if response ='quit' print('thanks for playing!' sys exit( make sure it is valid pit to select if (playerturn =' and response not in player_ _pitsor playerturn =' and response not in player_ _pits ) print('please pick letter on your side of the board ' continue ask player again for their move if board get(response= print('please pick non-empty pit ' continue ask player again for their move return response def makemove(boardplayerturnpit) """modify the board data structure so that the player or in turn selected pit as their pit to sow seeds from returns either ' or ' for whose turn it is next "" seedstosow board[pitget number of seeds from selected pit board[pit empty out the selected pit while seedstosow continue sowing until we have no more seeds pit next_pit[pitmove on to the next pit if (playerturn =' and pit =' 'or playerturn =' and pit =' ) continue skip opponent' store board[pit+ seedstosow - if the last seed went into the player' storethey go again if (pit =playerturn =' 'or (pit =playerturn =' ') the last seed landed in the player' storetake another turn return playerturn check if last seed was in an empty pittake opposite pit' seeds if playerturn =' and pit in player_ _pits and board[pit= project #