Game Programming and Development Tools

game ai – bennythebear

bennythebear

Member

Posts: 1225
From: kentucky,usa
Registered: 12-13-2003
i've almost fnished with first version of a tic tac toe game i've made in vb express, it's pretty simple. right now only 2 people can play against each other on the same computer, so i would like to work on making playing against the computer an option. so i need to any resources to help me get started on the basics of game ai, and some simple code samples(any form of basic will do). anything would be helpful.

------------------
proverbs 17:28
Even a fool, when he holdeth his peace, is counted wise: and he that shutteth his lips is esteemed a man of understanding.

proverbs 25:7
open rebuke is better than secret love.

www.gfa.org - Gospel for Asia

www.persecution.com - Voice of the Martyrs

luke

Member

Posts: 311
From: I use your computer as my second Linux box
Registered: 10-30-2005
The only site that I know of is "www.ai-junkie.com"

------------------
If you can see Chuck Norris, He can see You.
If you Can't see Chuck Norris, you may be seconds away from death.

Jari

Member

Posts: 1471
From: Helsinki, Finland
Registered: 03-11-2005
Have you read this: http://www.christiancoders.com/cgi-bin/articles/show_article.pl?f=vincent09262005092802.html

------------------
2Co 7:10 For godly sorrow worketh repentance to salvation not to be repented of: but the sorrow of the world worketh death.

[VoHW] (Help needed) [Blog] - Truedisciple (mp3)

steveth45

Member

Posts: 536
From: Eugene, OR, USA
Registered: 08-10-2005
Look for sites on Chess AI theory. I've read quite a bit myself, and its been helpful. They've been doing chess AI since the 60's, so there's a lot of theory out there that applies directly to any board game. Basically, the idea is this, when it's the computer's move, test all possible moves, analyze the resulting gameboard, as well as the possible countermoves. Do that recursively, and you should be able to find the best move. Since tic-tac-toe has a relatively small number of possible move combinations, you probably can calculate through all possibilities and just check for win/lose/tie situations. Chess is a little more complicated, there are apparently more possible game combinations then there are stars in the known universe or something along those lines.

------------------
+---------+
|steveth45|
+---------+

ArchAngel

Member

Posts: 3450
From: SV, CA, USA
Registered: 01-29-2002
yeah, I can let you see the code I used to make a tic tac toe game in Java.

I use the Game Theory. (chess AI)

it's unbeatable. maybe not exactly what your looking for, but you can always edit and implement.

------------------
"Patience, my good citizen, patience. It's bad enough to rob a man of his dream"
-Sydney Carton, Tale of Two Cities
Soterion Studios

bennythebear

Member

Posts: 1225
From: kentucky,usa
Registered: 12-13-2003
thanks for the links and advice. i'd be very interested in seeing your java code arch, i should be able to get the general idea of the ai.

------------------
proverbs 17:28
Even a fool, when he holdeth his peace, is counted wise: and he that shutteth his lips is esteemed a man of understanding.

proverbs 25:7
open rebuke is better than secret love.

www.gfa.org - Gospel for Asia

www.persecution.com - Voice of the Martyrs

bennythebear

Member

Posts: 1225
From: kentucky,usa
Registered: 12-13-2003
one more question, any books y'all would recommend, that you've read for yourself?

------------------
proverbs 17:28
Even a fool, when he holdeth his peace, is counted wise: and he that shutteth his lips is esteemed a man of understanding.

proverbs 25:7
open rebuke is better than secret love.

www.gfa.org - Gospel for Asia

www.persecution.com - Voice of the Martyrs

ArchAngel

Member

Posts: 3450
From: SV, CA, USA
Registered: 01-29-2002
you've been pmed with important information

------------------
"Patience, my good citizen, patience. It's bad enough to rob a man of his dream"
-Sydney Carton, Tale of Two Cities
Soterion Studios

bennythebear

Member

Posts: 1225
From: kentucky,usa
Registered: 12-13-2003
i can't access my private messages...? my gmail address is bennythebear if you feel like emailing me the info.

------------------
proverbs 17:28
Even a fool, when he holdeth his peace, is counted wise: and he that shutteth his lips is esteemed a man of understanding.

proverbs 25:7
open rebuke is better than secret love.

www.gfa.org - Gospel for Asia

www.persecution.com - Voice of the Martyrs