POLALA.COM
welcome to my space
X
Search:  
Welcome to:polala.com
NAVIGATION - HOME

Chess Ai

Published by: rose 2010-03-18

  • hi all!!!

    i just started my ISU for my programming class and i decided i want to make a chess game... i was wondering how i should go about programming the AI (no specific code required, just general steps to take etc.)

    I was thinking of using the minimax algorithm to determine the next move for the computer and using the bitboard method of storing all the positions of the peices on the board.

    any help would be appreciated,
    Least computationally expensive way to implement chess AI ::
    [Archive] Least computationally expensive way to implement chess AI? Computers and the Internet.
    http://forums.randi.org/archive/index.php/t-106052.html
    HOME

    mike


  • Originally posted by zylum
    hi all!!!

    i just started my ISU for my programming class and i decided i want to make a chess game... i was wondering how i should go about programming the AI (no specific code required, just general steps to take etc.)

    I was thinking of using the minimax algorithm to determine the next move for the computer and using the bitboard method of storing all the positions of the peices on the board.

    any help would be appreciated,

    mike

    I designed a checkers AI a while back for C++... It wasn't overly difficult.. But it took alot of brainwork to figure it out...
    Chess AI - kirupaForum::
    1 post - 1 author - Last post: Oct 26Chess AI Computers & Games/Tech. I wonder if there are any articles/ tutorials on Chess AI programming? Thanks in advance!
    http://www.kirupa.com/forum/showthread.php?t=312132
    HOME

    Basically.. To do a Chess AI correctly.. You have to let the computer think ahead by a couple of turns.. This is where the fun part comes in. You take every move humanly possibly by the player character.. You assign a numeric value to that move... Let's say.. 0 = no threat, 1 = minor threat, 2 = possible piece lost, 3 = impiortant piece lost, 4 = have to move, king being checked

    Then... You can go down the line.. If there are any 4's... You must move that piece.. If there are any 3's.. You must move that piece... If there are any 2's.. You must move that piece.. and so on down the line... Now... Not only do you have to figure that out.. You have to figure out how to make it challenging.. So the computer player is going to place his move on the board.. You must virtually (in his mind).. Allow him to think if that is a good move or not... Basically, if he moves the bishop.. Is there a piece that is going to intercept him? And then you can assign values to that specific move as well..

    And this is just the gist of it.. If I were to give you everything.. I could probably take up a couple of pages with diagrams and explanations.. Needless to say.. I'll have to do it sometime for my AI tutorials.. Found in the end of this forum.


  • Well, you probably know it already, but the alpha-beta pruning algorithm is perfect for such optimisation. I used to have a great link about it, can't find it right now, but a search on google should help :)


  • Eh... If you need help.. I could help you out... Especially in optimization :)


  • yea for sure, i think i read that the alpha-beta algorithm cuts down the moves the program has to look through by a square root.

    i was just wondering exactly how i would get started lol. man, this is going to be tough :P


  • Go for tic-tac-toe. Much more quicker. But if you do a chess, I wanna see this! I would grade it a A++++++.


  • Sounds like a cool project =)

    I did pong once.... that AI is easy hehe =) i made it always win! =) hehe...
    " paddle_y = (ball._y /2) "
    hehe =)


  • Min/Max is definitely the way to go, but man! Can't you try anything easier than chess? :-/


  • my friend had the same course last semester and he made a chess program that can think ahead 4 moves in an average of 30 seconds per move. i thought i'd challenge myself to make one that thinks 6 moves ahead and takes the same amount of time to calculate the move. this might be quite the challenge since for each extra "depth" the computer has to loop through an average of 35^depth moves. so his program loops through 35^4 moves while mine will hopefully loop through 35^6 (A LOT MORE). this means my program will have to be highly optimized aswell as have lots of short cuts to cut down the amount of moves to look through...

    anyways i have 2.5 months to finish this so i'll have plenty of time (hopefully)

    right now im working on making a player vs player chess program and its going along fairly well but once im done ill be working on the ai.


  • Basically what Marz said. You have to try all the possible moves, and assess the situation after each move. And then play the best move.





  • Where's The Advantage In Windows Genuine Advantage?
    Stocks Bounce After S&P Joins Bear Market

    PRINT Add to favorites
  • christians imagine you 039 re walking through a forest and you see a watch on the ground
  • trying to find out a hollisterco song when she misses someone know it 039 s not you
  • awsome coolio survey for everyone
  • help xbox 360 picture is in black and white
  • ps3 won 039 t read disks
  • where can i buy a bassoon for under 400
  • how can i fix my xbox 360 red ring of death rrod
  • what album was the original song california love from
  • should i buy a wii or an xbox 360
  • ranking of these musicians right
  • is call of duty world at war wii the same as call of duty 4 ps3 or just similar
  • what are religious truths that people think about yet do not say
  • x box 360 question
  • does anybody know all the cheats for grand theft auto san andres on playstation 2
  • what must christians do to maintain their hold on the world as a religion
  • what model of keytar does madonna wayne gacy play in the beautiful people and other marilyn manson songs
  • which playstation 3 should i get
  • xbox 360 help please d
  • i need help with song writing
  • where can i buy a ps3 80gb
  • author 039 s who write horror books for agers
  • will i get banned for redeeming so many codes
  • can the catholic church change its form of government
  • what are the best wii games for girls
  • can you play the wii with one hand
  • new xbox 360 controllers
  • my girl friend need a y rock or pop song
  • #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about Chess Ai , Please add it free.
     Homepage | Add to favorites | Contact us | Exchange links | LOGIN | Site map | 
    Copyright© 2008 polala.com        Site made:CFZ