*Author

Evil Hamster

  • Guest
AI code - Zanzarino please read this! https://elementscommunity.org/forum/index.php?topic=654.msg6255#msg6255
« on: December 15, 2009, 10:10:01 pm »

But it doesn't just play pillars/towers first.

For example- There's a top 50 fire deck I played several times last night. It played fire tower, brimstone eater, fire tower, brimstone eater, fire tower, brimstone eater- got that start at least 3 times.

Plus I think the AI sometimes holds a tower or two in hand if it has at least 10 out in the field. I can't verify that, it's just a general observation.

Evil Hamster

  • Guest
AI code - Zanzarino please read this! https://elementscommunity.org/forum/index.php?topic=654.msg6256#msg6256
« Reply #1 on: December 15, 2009, 10:10:01 pm »

'Utilises the gen() method subcommand to oxymoronify a bloink that wurflesqueebs a scug'
Whoah! you figured out the secret of the universe!

Pilchard123

  • Guest
AI code - Zanzarino please read this! https://elementscommunity.org/forum/index.php?topic=654.msg6257#msg6257
« Reply #2 on: December 15, 2009, 10:10:01 pm »

Okay, maybe it doesn't do exacty what I said, but that was just an example.

'What it does' could mean anything from 'plays the game, getting harder from AI0 to AI6' to 'Utilises the gen() method subcommand to oxymoronify a bloink that wurflesqueebs a scug'

Of course, that last example was completely made up (although if it means anything to anyone, please tell me), but I just mean something really complex that doesn't really tell any one anything. I don't mean that zanz is stupid, but I put the example there as a sort of 'If you do put what it does, could you do it a bit like this, rather than just telling us what we already know or a load of computer-speak that only 0.000001% of the total population of the world understands.' just in case of any misunderstandings.

Pilchard123

  • Guest
AI code - Zanzarino please read this! https://elementscommunity.org/forum/index.php?topic=654.msg6258#msg6258
« Reply #3 on: December 15, 2009, 10:10:01 pm »

So, people have been asking for the AI code - I'm asking too. I'm working on a Source (HL2, Portal, TF2 engine - no, I don't mean steam, I explained that somewhere, I belive) version, and, as I don't know how the AI works, could you post it here?

Either the code itself, or just what it does. Like:

1. Play pillars/towers
2. Evaluate enemy threats (eg higher attack is more dangerous, 10+ health is a waste of time to attack)
3. Deal with threats
Etc, etc, etc.

Of course, both would be even better.

As well as that, we could look at it, and suggest improvements. That way you won't have to do so much to it yourself. But then again, we'd know exactly what it does if you do, which maight make battles too easy.

thearchduke

  • Guest
AI code - Zanzarino please read this! https://elementscommunity.org/forum/index.php?topic=654.msg6259#msg6259
« Reply #4 on: December 15, 2009, 10:10:01 pm »

As well as that, we could look at it, and suggest improvements. That way you won't have to do so much to it yourself. But then again, we'd know exactly what it does if you do, which maight make battles too easy.
I don't think it would make AI battles any easier - I think we can all readily see dozens of exploitable AI issues.  What it would do is what you've suggested, allow the community to shoulder some of the burden of implementing some of these changes, especially since I see that there are still turds who graciously drop by every day to create a new 8 Billion point account with the stupidest decks I've seen for totally inscutable purposes.  What s*** stains.

chriskang

  • Guest
AI code - Zanzarino please read this! https://elementscommunity.org/forum/index.php?topic=654.msg6447#msg6447
« Reply #5 on: December 15, 2009, 10:10:02 pm »

Go down to less than 12 HP, and you'll see it:
(http://a.imagehost.org/view/0521/burrow2)

(http://a.imagehost.org/view/0582/burrow3)

In case The Archduke's comment wasn't clear yesterday, my WIP on the wiki is not speculation from my side, it's the real AI algorithm.
The page is about 90% done now and you can already find answers to your last questions there (about Miracle, Poison & Unborrow)

Evil Hamster

  • Guest
AI code - Zanzarino please read this! https://elementscommunity.org/forum/index.php?topic=654.msg6448#msg6448
« Reply #6 on: December 15, 2009, 10:10:02 pm »

How did you get the actual code?

Evil Hamster

  • Guest
AI code - Zanzarino please read this! https://elementscommunity.org/forum/index.php?topic=654.msg6449#msg6449
« Reply #7 on: December 15, 2009, 10:10:02 pm »

It does unburrow- but usually only if you are about to die.

Forfeit

  • Guest
AI code - Zanzarino please read this! https://elementscommunity.org/forum/index.php?topic=654.msg6450#msg6450
« Reply #8 on: December 15, 2009, 10:10:02 pm »

This would be good, but how many people would see how this works and then make unrealistic suggestions because they don't actually know how it work? BTW, I do think this is a good idea, that just might be something we have to deal with later on.

Pilchard123

  • Guest
AI code - Zanzarino please read this! https://elementscommunity.org/forum/index.php?topic=654.msg6451#msg6451
« Reply #9 on: December 15, 2009, 10:10:02 pm »

I didn't suggest it first, someone else did, but I just started an new thread for why I wanted it and though that I'd put that in too, so that it was in two places and more likely to be read.

EDIT : I found where it was mentioned previously.

http://elementstheforum.smfforfree3.com/index.php/topic,770.0.html

Pilchard123

  • Guest
AI code - Zanzarino please read this! https://elementscommunity.org/forum/index.php?topic=654.msg6452#msg6452
« Reply #10 on: December 15, 2009, 10:10:02 pm »

Yeah, but how does it know if it's a good idea?

Pilchard123

  • Guest
AI code - Zanzarino please read this! https://elementscommunity.org/forum/index.php?topic=654.msg6453#msg6453
« Reply #11 on: December 15, 2009, 10:10:02 pm »

How did you get the actual code?
That's what I was going to say. But, if that is the real AI code, then...umm...that's going to take a while to change to C+, I think.

Is it C+ or C# that source is written in?

EDIT: It's C++, I just checked. Anyone know C++ and have Portal and the Source SDK here? I might ask for help sometime, if I carry on with it.

 

blarg: