displayboard(gameboard playermove askforplayermove(playerturngameboard carry out the player' move playerturn makemove(gameboardplayerturnplayermove check if the game ended and player has won winner checkforwinner(gameboard if winner =' or winner =' ' displayboard(gameboarddisplay the board one last time print('player winner has won!' sys exit( elif winner ='tie' displayboard(gameboarddisplay the board one last time print('there is tie!' sys exit( def getnewboard() """return dictionary representing mancala board in the starting state seeds in each pit and in the stores "" syntactic sugar use shorter variable name starting_number_of_seeds create the data structure for the boardwith seeds in the stores and the starting number of seeds in the pits return {' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' def displayboard(board) """displays the game board as ascii-art based on the board dictionary "" seedamounts [ this 'ghijkl abcdefstring is the order of the pits left to right and top to bottom for pit in 'ghijkl abcdef' numseedsinthispit str(board[pit]rjust( seedamounts append(numseedsinthispit print("" +++--<<<<<-player ----+++ | | | | | | {{{{{{ {++++++{ | | | | | | {{{{{{ ++++-player ->>++ ""format(*seedamounts) mancala