Here is the board with the stones in the mancala. The player with the most stones in their mancala wins.
Player 1 has stones.
Player 2 has stones.
It is Player 's turn.
Best moves -
Player 1 wins!
' elif p2 > p1: document.getElementById('words').innerHTML += 'Player 2 wins!
' else: document.getElementById('words').innerHTML += 'Draw!
' return inner pits = [document.getElementById(f'1,{i}') for i in range(6)] proxies = [create_proxy(wrapper(i)) for i in range(len(pits))] for i, pit in enumerate(pits): pit.addEventListener("click", proxies[i])