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.
-If the number of towers is even, it is always the second player who wins, since they always play the best game
-Likewise, if the number of towers is odd, the first player will always win
-But in the case that the height of the towers is equal to 1 from the beginning, the first player will lose before he plays because he does not have any moves to play
Tower Breakers
You are viewing a single comment's thread. Return to all comments →
The logic of my solution
-If the number of towers is even, it is always the second player who wins, since they always play the best game
-Likewise, if the number of towers is odd, the first player will always win
-But in the case that the height of the towers is equal to 1 from the beginning, the first player will lose before he plays because he does not have any moves to play
Python Solution