Author Topic: [contest 2013 / BASIC] Toy Wars - Willrandship  (Read 4448 times)

0 Members and 1 Guest are viewing this topic.

Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Re: [contest 2013 / BASIC] Toy Wars - Willrandship
« Reply #15 on: October 26, 2013, 05:03:46 pm »
Thanks!

I got the HP bug worked out (I forgot the =0 on an if(something=0) so it was running in reverse XD

Now I'm working on the AI. It's using a simple scoring system for each direction, and taking the best. Using shelters to heal is above attack, which is above being able to move (which is random in score from 0 to 4 to avoid predictability). Proximity algorithms would be much slower, so I'll avoid them if I can. The AI is very simple, since it only has to return a single value from 0 to 4 each time it is called.

As of Right now, the AI appears to be functioning. ;D

I think I won't add any other stuff, at least not for the contest entry version. I'll try to polish up the graphics, and I still need to do Code commenting for the submission.