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
|
394 Discussions
|
Please Login in order to post a comment
Python:
Description: In each turn, a player can choose a tower of height and reduce its height to, where and evenly divides. There are towers, each 6 units tall. Player has a choice of two moves: - remove 3 pieces from a tower to leave 3, as 6 mod 3 == 0 - remove 5 pieces to leave 1
In what world does 5 evenly divide 6 ? This is not a test of programmers skill, but pure pure mathematics and ones ability to interprete a badly written set of requirements.
The problem statement is clear but could be more precise. Explicitly stating that both players play optimally would remove ambiguity. The phrase "evenly divides" should be clarified as "a proper divisor of x." Additionally, specifying whether any valid divisor can be chosen or if constraints (e.g., odd-only reductions) apply would improve clarity. Finally, explicitly mentioning that if m = 1, Player 1 loses immediately would help avoid confusion.
One could also remove 4 and have the tower with 2 pieces left, as 6 mod 2 = 0.