We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Tower Breakers
- Discussions
Tower Breakers
Tower Breakers
Sort by
recency
|
310 Discussions
|
Please Login in order to post a comment
Why in the example n=2, m=6 the player 1 has only 2 options remove 3 or 5? what about 4? 6 - 4 = 2, so 6 module 2 === 0?
JavaScript
Python
Please replace "y evenly divides x" with "x can be divided by y "
💡 Either player could just reduce a tower’s height to 1 as the most optimal move. However, Player 1 always moves first so there’s two implications:
If the default tower height > 1:
P1 will always have the last optimal move if there's odd number of towers
Otherwise, P2 wins.
So, basically the player who has the last optimal move wins
Java: