Author Topic: Man vs AI (New Map!)  (Read 2720 times)

0 Members and 1 Guest are viewing this topic.

Mihhaelo

  • Sapling
  • **
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 67
Man vs AI (New Map!)
« on: October 18, 2011, 09:26:47 PM »
Test yourself against my first (messy) attempt at making an AI!

Normal has 30 asteroids

Epic has 50 asteroids

Have fun!

Lost Seedling

  • Shrub
  • ***
  • Thank You
  • -Given: 3
  • -Receive: 3
  • Posts: 148
Re: Man vs AI (New Map!)
« Reply #1 on: October 19, 2011, 12:16:40 AM »
Interesting approach to AI. I need to play more games, but so far it seems to need more restraint in its attacks- somewhat suicidal right now. I'm already looking forward to some 4-way AI war action!

Aino

  • Ent
  • ******
  • Thank You
  • -Given: 1
  • -Receive: 20
  • Posts: 1,483
  • They'll eat you next!
  • Eufloria: Yes
Re: Man vs AI (New Map!)
« Reply #2 on: October 19, 2011, 01:49:58 PM »
AWESOME!

I immediatly tested it and it looks awesome, didn't do much resistance against it though.

After I made it fight MAI and it...
(click to show/hide)

I can releast the map here if you want me to, but your choice(disabled the win/loss functions) :)

EDIT:
Also fix the not colonising players empty asteroids, even though that seems like a rare thing to happen, it's simple to fix. Use IsBarren() to find out if the asteroid is barren and then tell what to do with the asteroid. I also do speed tests, and MAI is very effective at speed tests as well as normal-speed tests.
« Last Edit: October 19, 2011, 01:55:52 PM by Aino »

Mihhaelo

  • Sapling
  • **
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 67
Re: Man vs AI (New Map!)
« Reply #3 on: October 19, 2011, 02:16:06 PM »
Thanks for trying the AI guys and thanks for the suggestions. I know many ways of improving it, but it felt formidible enough to release. My plan at present it to clean up the code and make several distinct AI's. I'm aiming for an epic sized map with 7 enemies :P. The suicidal behaviour was intentional

If there's anything big that needs changing (prevents the enemy from winning, crashes the map) mention that and I'll update the files. I won't be making an AI changes at the moment though, although suggestions are welcome as I can use any of them in follow up maps.

Also, I'd love for you to release that map Aino. An AI competition would lead to many maps!

Aino

  • Ent
  • ******
  • Thank You
  • -Given: 1
  • -Receive: 20
  • Posts: 1,483
  • They'll eat you next!
  • Eufloria: Yes
Re: Man vs AI (New Map!)
« Reply #4 on: October 19, 2011, 02:41:54 PM »
Ok, I release will!

Also, love the map generation :P

Pilchard123

  • Tester
  • Old Oak
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 17
  • Posts: 899
  • Eufloria: Yes
Re: Man vs AI (New Map!)
« Reply #5 on: October 19, 2011, 04:30:04 PM »
Oh, there'll be another in the mix soon, if all goes to plan.

Bonobo

  • Achiever
  • Old Oak
  • ****
  • Thank You
  • -Given: 77
  • -Receive: 8
  • Posts: 629
  • Was born, still alive.
    • German Mac Mailing Lists
  • Eufloria: Yes
Re: Man vs AI (New Map!)
« Reply #6 on: October 19, 2011, 06:17:27 PM »
Whoa, very nice map, Mihhaelo! I played the smaller version last night and enjoyed it a lot, though towards the end it was too easy … but then again I’m always glad when I’m at all able to win a map ;)
Google+
Do you play Go? (aka iGo aka Baduk aka Weiqi)

Aino

  • Ent
  • ******
  • Thank You
  • -Given: 1
  • -Receive: 20
  • Posts: 1,483
  • They'll eat you next!
  • Eufloria: Yes
Re: Man vs AI (New Map!)
« Reply #7 on: October 19, 2011, 06:31:26 PM »
Hurry then, pilchard! I wanna see your monster in the cauldron with all the others :P

Pilchard123

  • Tester
  • Old Oak
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 17
  • Posts: 899
  • Eufloria: Yes
Re: Man vs AI (New Map!)
« Reply #8 on: October 19, 2011, 08:39:11 PM »
My monster is fairly toothless at the moment, I scrubbed most of the code out because I forgot what it did in the time that I was away from working on it. Now I'm probably going to rewrite everything again, and it will do...exactly the same thing as before! :D

Aino

  • Ent
  • ******
  • Thank You
  • -Given: 1
  • -Receive: 20
  • Posts: 1,483
  • They'll eat you next!
  • Eufloria: Yes
Re: Man vs AI (New Map!)
« Reply #9 on: October 19, 2011, 08:51:53 PM »
*Cough* commenting *cough*

Even though I NEVER comment my stuff(which I really wanna do!) I remember everything, I can go into a 6 months old code and remember everything 'cause I just have theese pictures in my head which I can zoom in at, zoom out at and everything. I guess the journey I make while coding is so fun that I remember everything :P

Mihhaelo

  • Sapling
  • **
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 67
Re: Man vs AI (New Map!)
« Reply #10 on: October 19, 2011, 08:59:58 PM »
The way you did your "vs" file broke my AI, meaning it would always lose. I've updated the file and my AI now loses 99% of the time  ;D. I did notice your AI uses information a human player wouldn't have though; whereas mine doesn't. My AI would still lose though as it's not as good!

This attachment is the fixed version of our two AI's going at it. I've also changed the colour scheme a little and auto-zoomed, so the whole map is always on the screen and lastly I changed the win/lose conditionals to print which AI won  :P

It's sadly fun to have on in the background when I can't be bothered to play.

I think I'm going to make an AI vs AI template map (this code is far too messy to use!), so I can make an AI wars thread!  ;D

Oh and Pilchard, if you haven't already recoded most of your AI, It would be nice if you set your AI's behaviour to only use Globals. As then I could easily intergrate it into my future AI wars thread.

For example..

(click to show/hide)

instead of...

(click to show/hide)

Doesn't matter if you don't bother though, I'm sure I'd get around to it myself at some point, heh

Aino

  • Ent
  • ******
  • Thank You
  • -Given: 1
  • -Receive: 20
  • Posts: 1,483
  • They'll eat you next!
  • Eufloria: Yes
Re: Man vs AI (New Map!)
« Reply #11 on: October 19, 2011, 09:05:45 PM »
Hehe, I never tought of using globals when creating my AI. I guess it'll work out anyways, as nothing will happen if having it 10 :P

Edit: and how did it break your AI? I didn't change anything else than making one asteroid the players and ADDING in my AI. o.O

Mihhaelo

  • Sapling
  • **
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 67
Re: Man vs AI (New Map!)
« Reply #12 on: October 19, 2011, 09:16:17 PM »
Because my AI won't plant trees on owned asteroids that have no trees (Something it should do!). When you added a human player with 1 seedling, it caused my AI to dump all it's seedlings there and do nothing else.

I removed the human player in the updated file  ;D

Aino

  • Ent
  • ******
  • Thank You
  • -Given: 1
  • -Receive: 20
  • Posts: 1,483
  • They'll eat you next!
  • Eufloria: Yes
Re: Man vs AI (New Map!)
« Reply #13 on: October 19, 2011, 09:16:58 PM »
Also, fix those flower! 70% of the winnning if cause mine uses flowers!

Just copy paste from annikks AI, or mine :) Uppon approach of talkin' about Annikk, where is he? Hiding under that rock again?

Lost Seedling

  • Shrub
  • ***
  • Thank You
  • -Given: 3
  • -Receive: 3
  • Posts: 148
Re: Man vs AI (New Map!)
« Reply #14 on: October 19, 2011, 09:22:47 PM »
I agree- the map generation is very clever!

I've run several AI war scenarios with the MAI (Mihhaelo- are you going to name yours?). They both were even in their unimpeded expansion, but once they encounter one another there is no contest, at this point. Both AI's suffer from the phenomenon I've noticed with MAI- they tend to "freeze" on an asteroid and will not expand further. This sometimes occurs on the "player" asteroid, or an asteroid that is barren.

I'd like to run more scenarios but will be away from my computer for a month or so...

Great- I see there is a new version available- no time to retest!

Attached a few screenshots: