Thread: Getting started with AI

  1. #1
    Registered User Swarvy's Avatar
    Join Date
    Apr 2008
    Location
    United Kingdom
    Posts
    195

    Getting started with AI

    I've been reading about AI programming recently, and although I understand the idea, and the general technique, I am having a problem writing my own source code. I was wondering if anyone knows where I can find some example code I can read, so that i have something to base my own code on.

  2. #2
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    How about a little more information... AI is a rather large field. Are you trying to implement something in particular? What "general technique" are you talking about?

  3. #3
    Registered User Swarvy's Avatar
    Join Date
    Apr 2008
    Location
    United Kingdom
    Posts
    195
    Quote Originally Posted by Perspective View Post
    How about a little more information... AI is a rather large field. Are you trying to implement something in particular? What "general technique" are you talking about?
    Sorry, my bad. I've read the tutorials on cprogramming.com and a few other places about minimax trees, and I understand the basic idea, although I must come up with an implementation of it for a tic tac toe game. After reading the tutorials, I understand the basic concept, although I'm having trouble translating that into program code, so I was thinking that if I could find some existing source code for this, then it would help me to get the ball rolling so to speak.

  4. #4
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    search these boards (the contest board in particular) for the connect 4 contest. I believe everyone posted their code and minimax was likely the basis for all of them.

  5. #5
    Malum in se abachler's Avatar
    Join Date
    Apr 2007
    Posts
    3,195
    Well, i recommend you read Russel and Norvig (ISBN 0-13-790395-2) for an overview of AI, as for example code, a simple google search should turn up examples of any particular technique. BTW russel and norvig is a very broad overview, I think they spend something like 4 pages on minimax, out of a 1000+ pages of text, so obviously AI is a very large field. I think they spend about 20 pages on neural networks, and then of course I have books that get more specific about neural networks in general, and then neural networks for specific applications, im sure there are similar texts for minimax.
    Last edited by abachler; 11-21-2008 at 10:35 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Simple space combat AI
    By VirtualAce in forum Game Programming
    Replies: 5
    Last Post: 01-06-2009, 12:54 AM
  2. chess ai contest
    By Raven Arkadon in forum Contests Board
    Replies: 7
    Last Post: 07-09-2005, 06:38 AM
  3. AI Contest Proposal
    By MadCow257 in forum Contests Board
    Replies: 4
    Last Post: 03-13-2005, 03:27 PM
  4. Game Design Topic #1 - AI Behavior
    By TechWins in forum Game Programming
    Replies: 13
    Last Post: 10-11-2002, 10:35 AM
  5. Technique of all board-like games?
    By Nutshell in forum Game Programming
    Replies: 28
    Last Post: 04-24-2002, 08:19 AM