Aug 21, 2011

AI Challenge

There's a simple dice game that you could try your hand at coding an AI for. Interested?

The game is Zombie Dice. You keep rolling until you either cash out with all your collected brains or you come up with three shotguns and get zero points.

Improve on my base-line actor!

def actor(state) {

if (state.shotguns == 2) "stop"
}
The simulator is here on GitHub.

It could be that this problem is too simple. This above benchmarks at an average score per turn of 2.4. This benchmarks at 2.5:
def actor = { state ->

if (state.shotguns == 2 && state.score > 0) "stop"
}
And my best idea benchmarks at an average of 2.6. Not much variation, really.

No comments: