My attempt at a partial-knowledge AI: Dark Chess 960

Discuss the development of other free/open-source games, as well as other games in general.

Moderator: Forum Moderators

Post Reply
Dave
Founding Developer
Posts: 7071
Joined: August 17th, 2003, 5:07 am
Location: Seattle
Contact:

My attempt at a partial-knowledge AI: Dark Chess 960

Post by Dave »

I thought it would be cool to try to write an AI that only has partial knowledge of its environment. A lot of effort has gone in to making chess playing computers that are great at chess and some chess variants, but little effort has gone into variants of chess that have incomplete information.

So, I decided it'd be cool to write an AI for Dark Chess. To spice it up a little, I combined it with chess 960. The result, a half-decent AI that plays without cheating at all, and can do okay (at least it can beat me sometimes when I play fairly casually).

Here's a page I put up for it: http://www.silvertreerpg.org/dark/. (Includes source code and Windows binaries).

Any comments/feedback on it are welcome.

David
“At Gambling, the deadly sin is to mistake bad play for bad luck.” -- Ian Fleming
mog
Inactive Developer
Posts: 190
Joined: March 16th, 2006, 2:07 pm
Location: Germany
Contact:

Re: My attempt at a partial-knowledge AI: Dark Chess 960

Post by mog »

The page has the following meta-tag, which makes reading it a bit challenging:
<meta http-equiv="refresh" content="5; URL=http://">
Aurë entuluva!
Dave
Founding Developer
Posts: 7071
Joined: August 17th, 2003, 5:07 am
Location: Seattle
Contact:

Re: My attempt at a partial-knowledge AI: Dark Chess 960

Post by Dave »

mog wrote:The page has the following meta-tag, which makes reading it a bit challenging:
<meta http-equiv="refresh" content="5; URL=http://">
Ahh yes, sorry; fixed. :)
“At Gambling, the deadly sin is to mistake bad play for bad luck.” -- Ian Fleming
baruk
Posts: 68
Joined: July 2nd, 2005, 11:45 pm

Re: My attempt at a partial-knowledge AI: Dark Chess 960

Post by baruk »

I just beat it. The AI gave me a head start of 2 knights and a queen, before letting me queen a pawn. Think it needs to focus more on freeing pawn moves rather than just dancing its knights around the board. A game replay feature would be nice as well.
Lorbi
Posts: 162
Joined: May 21st, 2007, 6:35 am
Contact:

Re: My attempt at a partial-knowledge AI: Dark Chess 960

Post by Lorbi »

There is things it could know but ignores.
It moves its knight on a square where my knight was able to capture it.
well this is bad luck and may happen but it should see than that my knight captures it's knight ....
well i did so and next turn it moves the queen on a square where it should know i can capture it with aforesaid knight

i hope i made clear the point : )
besides that i like it : )
-- ^ --
User avatar
Elvish_Pillager
Posts: 8137
Joined: May 28th, 2004, 10:21 am
Location: Everywhere you think, nowhere you can possibly imagine.
Contact:

Re: My attempt at a partial-knowledge AI: Dark Chess 960

Post by Elvish_Pillager »

It's spent 5 minutes so far and from the look of the progress bar it's going to take another 10 or 15 minutes on this turn. :(

EDIT: update: That turn only took about another 4 minutes, but it took another four minutes for the first bit of red to even appear in the progress bar on the next. I reckon it would take over two hours to finish; instead, I declare victory and kill the process, to go do something else :|

(We're maybe a couple dozen moves into the game... not sure how many ; there ought to be a way to view the game history. Does it try to calculate every possible current state given what it knows?)

Image
It's all fun and games until someone loses a lawsuit. Oh, and by the way, sending me private messages won't work. :/ If you must contact me, there's an e-mail address listed on the website in my profile.
Dave
Founding Developer
Posts: 7071
Joined: August 17th, 2003, 5:07 am
Location: Seattle
Contact:

Re: My attempt at a partial-knowledge AI: Dark Chess 960

Post by Dave »

Elvish Pillager wrote:Does it try to calculate every possible current state given what it knows?)
Yes, exactly. This is what makes it take so long in some positions: the set of possible states might be huge.
“At Gambling, the deadly sin is to mistake bad play for bad luck.” -- Ian Fleming
Post Reply