oppositepit opposite_pit[pit board[' '+board[oppositepit board[oppositepit elif playerturn =' and pit in player_ _pits and board[pit= oppositepit opposite_pit[pit board[' '+board[oppositepit board[oppositepit return the other player as the next player if playerturn =' ' return ' elif playerturn =' ' return ' def checkforwinner(board) """looks at board and returns either ' or ' if there is winner or 'tieor 'no winnerif there isn' the game ends when player' pits are all emptythe other player claims the remaining seeds for their store the winner is whoever has the most seeds "" player total board[' 'board[' 'board[' ' player total +board[' 'board[' 'board[' ' player total board[' 'board[' 'board[' ' player total +board[' 'board[' 'board[' ' if player total = player gets all the remaining seeds on their side board[' '+player total for pit in player_ _pits board[pit set all pits to elif player total = player gets all the remaining seeds on their side board[' '+player total for pit in player_ _pits board[pit set all pits to else return 'no winnerno one has won yet game is overfind player with largest score if board[' 'board[' '] return ' elif board[' 'board[' '] return ' else return 'tie if the program is run (instead of imported)run the game if __name__ ='__main__' main(mancala