Quote:
Originally posted by Gerco
Looks great, I'll adapt it to java...
I have a question: When a tank shoots, the shell should explode one turn later, right? Here's the problem:
Turn 1:
Tank1 shoots at 10,10
Tank2 moves to 10,10
Turn 2:
Shell Explodes?
Tank1 recharges
Tank2 moves to 11,10
Shell explodes?
See the problem? When does the shell explode? If it explodes at the start of the turn, tank2 is destroyed/damaged, but if it explodes at the end of the turn, it misses. Which is it?
Another thing, do tanks have damage? When you get hit, is it instantly destroyed, or damaged? How about blast radius, does a tank get damaged if a shell explodes in a square next to it? How many squares is the radius, by howmuch will the tank be damaged? Self damage?
A lot of detail questions still need working out...
I also plan to have ppl be able to submit queues of actions for a tank. Preprogram it so to say, that will be great if someone won't ba able to play for some time.
Gerco.
I would arbitarilly say that the shells explode at the start of the round before any tanks move, this way the AI has to make a guess as to where the tank is going to move next. Making it guess two moves ahead would be much much harder (far more variables).