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.
Firsts & second attemp i was try to calculate every tower / every move can do. correct but take too many time.
Thirt attemp, I realized every player will reduce tower to 1 when they can, so i just need to know numbers of tower that divide to 2 tp know the winner, a exception is the tower already height 1, so whatever numbers of tower, player move firsts will lose, the winner is 2.
Tower Breakers
You are viewing a single comment's thread. Return to all comments →
My answer with Typescript.
Firsts & second attemp i was try to calculate every tower / every move can do. correct but take too many time.
Thirt attemp, I realized every player will reduce tower to 1 when they can, so i just need to know numbers of tower that divide to 2 tp know the winner, a exception is the tower already height 1, so whatever numbers of tower, player move firsts will lose, the winner is 2.