Chess Engine?

This is a discussion on Chess Engine? within the C Programming forums, part of the General Programming Boards category; How can we write chess engines in C. Many peoples are writing. What is actually needed for writing them. I ...

  1. #1
    Registered User
    Join Date
    Sep 2006
    Posts
    16

    Chess Engine?

    How can we write chess engines in C. Many peoples are writing. What is actually needed for writing them. I mean what to know (C conceepts) before writing them?

    Help please.....

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Search Engine?


    Quzah.
    Hope is the first step on the road to disappointment.

  3. #3
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    Quote Originally Posted by sankarv
    How can we write chess engines in C. Many peoples are writing. What is actually needed for writing them. I mean what to know (C conceepts) before writing them?

    Help please.....
    Chess engines are tough little devils.

    You need to have a move generator function, to fill a 3d array of possible moves for that level in the search. A minimal display (you'll use one of the more professional looking displays later).

    You'll need a makemove and unmakemove functions to allow your search to make a move, then possibly discover it's not a good one or even illegal, and unmake that move and try another move.

    Another function to determine if you're in check from this board position, or if the game is over from stalemate or checkmate. Naturally, a depth first Alpha-Beta search, and perhaps the most difficult thing of all - your evaluation functions!

    A good first look at a C chess "engine" is FirstChess, which is designed for learning ONLY.
    Then google for Tom's Simple Chess Program (which isn't so simple but none of them are too simple), and check it out. Both are in C.

    Then goto the Winboard forum and TalkChess forum and learn from the collection of experts gathered there. Be SURE to checkout Bruce Moreland's links there. He's the author of "Ferret", and his websites are probably the best on the net for chess programming info.

    http://www.talkchess.com/ , and you want the programming/technical forum. Many of the best chess programmer's in the world, yak right there. Several who contribute regularly, are former world champs. Many others are very serious competitors at the highest levels.

    At the Winboard forum (which is one of the professional display interfaces previously mentioned), you'll find tons of links to open source amateur chess engines, and like talkchess, idea's after idea's and answers after answers.

    Good luck!

    Adak

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Chess engine
    By beene in forum General AI Programming
    Replies: 4
    Last Post: 08-21-2007, 11:21 PM
  2. Game Engine Link Prob
    By swgh in forum Game Programming
    Replies: 2
    Last Post: 01-25-2006, 11:14 PM
  3. Chess engine
    By coconutkid in forum Projects and Job Recruitment
    Replies: 16
    Last Post: 11-22-2004, 06:30 AM
  4. Ultra chess engine contest
    By yodacpp in forum Projects and Job Recruitment
    Replies: 8
    Last Post: 11-21-2004, 06:58 AM
  5. Ultra chess engine
    By yodacpp in forum Game Programming
    Replies: 2
    Last Post: 11-19-2004, 11:33 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21