Automabot Battler by NeiloGD

[raw]
made by NeiloGD for LD31 (COMPO)
Test your skills at implementing a simple AI program, and pitting it against a tougher robot!

This requires WebGL, and probably an alrightish GPU (May run on a Chromebook, let me know if it does!). If there is demand I may put together a Windows & Linux build for this, but my aim here is to avoid needing native builds anymore.

Each time you win, the tougher bot will take the AI you beat it with, forcing you to improve your own program more be it through brute force spam attacking it, or be it through simpler means by evading quickly, healing at the cost of some energy, or annoyingly circling it until you can blast it with a higher power weapon.

Each bot has both health (green bar), and energy (blue bar). Energy will charge, and is used for firing weapons and healing. This will also charge over time.

The program works quite simply, a single command is a "Condition" and an "Operation". Each condition and operation can have a value associated with them (to the right of them in the UI). This value is called (X) below.

The conditions available are:

"!" - Never do this. Used to do nothing.
"*" - Always do this. Will always execute this operation.
"E "E>X" - Do operation when enemy greater than (X) units from you.
"St "St>X" - Do operation when starting point is greater than (X) units from you.
"At "He "He>X" - Do operation when our health is greater than (X)%
"En "En>X" - Do operation when our energy is greater than (X)%

The operations are as follows:
"Set" - Set current state to (X). State is denoted by the number on the left of the command.
"M-X" - Move to within (X) units of the enemy.
"M-St" - Move to within (X) units of our starting point.
"AvAtX" - Avoid attack by moving (X) units out of its way.
"At-WpA" - Attack using Weapon A. Weapon A is fast, low energy cost, but low damage.
"At-WpB" - Attack using Weapon B. Weapon B is slow, high energy cost, and high damage.
"Heal" - Heal ourself (X)% by using some of our energy.

Ratings

Coolness 45% 1550
Overall 3.31 433
Audio 2.67 574
Fun 3.10 535
Graphics 2.93 663
Humor 2.20 760
Innovation 4.07 59
Mood 2.92 568
Theme 3.21 972

Feedback

Wezley
08. Dec 2014 路 03:39 UTC
Incredibly complex, I like it though.
igneousmoon
08. Dec 2014 路 06:23 UTC
Had a few goes, it's complex but you can create a pretty powerful bot if you refine for a while, pity that makes the enemy stronger too :P
馃帳 NeiloGD
08. Dec 2014 路 06:51 UTC
Just don't make the bots *too* good ;)
mrexcessive
08. Dec 2014 路 17:23 UTC
Hi there. Like the idea. I think it may need a simpler way in. Not sure much need for state label and go to state without any conditionals. Making player play their own algo at next level is a clever way to self-balance the game and keep it challenging. Good job!
馃帳 NeiloGD
08. Dec 2014 路 21:14 UTC
mrexcessive: The state stuff was sorta put in. Each statement also has an implicit conditional on it, so I've done an example that switches state in an attempt to only evade and heal (the fewer instructions the lower latency on response). I did want to make it a bit more complex and become more programmable by using a simple assembly language, but I felt that would have just complicated things further. Thanks for the feedback though, glad you like the idea!
馃帳 NeiloGD
08. Dec 2014 路 21:15 UTC
By sorta put in, I meant sorta forced in. Was originally just jumps but it was too complicated to work with reliably.
voxel
09. Dec 2014 路 07:43 UTC
This is certainly the most approachable Write Your Own Killer Robot game I've played. I like that you didn't over simplify to the point of stupidity, but I can see it being possibly too complex for non programmers. Nice work, would deathbot again
DarkEngineer
12. Dec 2014 路 18:06 UTC
Nice idea for the game
Renaldo
13. Dec 2014 路 14:26 UTC
It's fun to play, but it takes some time for you to understand how to control the bot. I got confused with the distance units and the spread and power of the weapons. It would be fun to see your bot battling bots made by other people.
snickersnacks
14. Dec 2014 路 21:36 UTC
I'll be honest, this is way too complicated for me to want to play it for long. I have to keep going back to your entry page to reference the rules. It seems other people enjoyed it though.
6DownStudios
14. Dec 2014 路 21:40 UTC
Really awesome idea! Team battles could be neat, 2v2, or even 8v8 with different area attacks (line, cone, etc). Might also be fun to set up a free-for-all arena with a bunch of randomized bots, and use the victorious bots' data as a seed for the next generation of bots. Natural selection at work!

Well done!
erik
15. Dec 2014 路 08:04 UTC
You've built a really cool system. I found it hard to get into it though. And once I did, it seemed like it was really easy for any bot that uses heal to stalemate really quickly. It also seems like the energy requirement on weapon b is way too high for it to ever be useful.
Lovelock
16. Dec 2014 路 08:46 UTC
Bonus points for an ambitious game concept. I always liked games where you don't have direct control over your characters and such. Sort of set it and forget it and hope you were clever enough to win. Neat idea. I'd love to see it refined!
Bonobo Games & Mechanic Moon
16. Dec 2014 路 11:17 UTC
I liked a lot. It has given me an idea for an upcoming game. Great job.
d3garcia
22. Dec 2014 路 04:54 UTC
I love the game.
Topaz Studios
22. Dec 2014 路 10:01 UTC
Really cool design base. Found it kinda complicated but I felt more at home with the programming inspired instructions, instead of the oversimplified controls most games give nowadays. Good work xD!
mohammad
30. Dec 2014 路 01:00 UTC
Complex but a lot of ways to dig into the game. I kinda like it.
freaknarf
30. Dec 2014 路 01:54 UTC
weird!!!