[Community Puzzle] Castle Siege

Coding Games and Programming Challenges to Code Better

Send your feedback or ask for help here!

Testcase 2 say the map looks like this
T
.
.
.
.
9

so as far i as can see it the minion can’t be killed by the tower, so it will move up until it crashes into the tower and dies.
It need 5 turns to collide with the Tower
So i would say the correct result is ‘WIN 5’
But the Testcase expects ‘WIN 6’

Take a close look at the turn order. When do you check for victory? When is an enemy destroyed? Is it always at the same stage in the turn?

oh really? the win check is at step 2 … k … thx =)

Hello,

i’ve got a problem with Castle siege with real tests #5 and #6 but it works with testcases. I do it in PHP. Can someone verify if it really works fine?

Thanks a lot.

ferbos