chess

  • Thread starter Thread starter derian
  • Start date Start date
D

derian

Do you guys know if there is a program that can generate chess moves? I
recently wrote a chess game but its only 2 [human] player... I deceided it
was too difficult to come up with the logic for the AI movements... anyone
know where i can find a DLL that will generate chess moves? Ideally, the
DLL would accept moves made by the human player and generate an AI move
based on that. Any help would be much appreciated

:\\ME
 
I wrote an AI (if you can call it that) chess game before.

Recursion, Recursion Recursion...

And it gets really confusing...

Just think about how you think, your own rationale, its simply a game of
perceiving the next move.

So try to build from the opposite side. instead of thinking about what your
computer is going to attack, predict the next move by assigning value to
pieces...

Now it gets fun. Because logically, the computer could predict the entire
game.. this could be time consuming, in whichc ase you can set your
diffuculty level to timeout after awhile in which case the computer ranks
its moves and takes the "best" one.

No, I don't have DLL code... sorry, =)

I might get bored and write it sometime.
 
I tried that but i was .07% done with the code when i came to the conclusion
that I'm only running a 1gig processor w/512 ram and i'm in fact not deep
blue... to calculate all the possibilities for 1 move would take an infinite
amount of time... even if i set the timeout.

Any other ideas?
 
Hi Derian, CJ,

ROFL. <Only> 1GHz, <only> 512Mb RAM, <only> VB.NET.

[wanders away mumbling to himself, "why, when I were a lad .... 4MHz,
32Kb, real basic BASIC.. ... kids these days, don't know what they've got ...
no appreciation ... we fought a war for ... don't know their alpha-betas from
a bubble sort.... heuristics? probably think I've sneezed .... fit the entire
chess board into 32 bytes .... generating legal moves, now that were easy
compared to finding the <best> move.... tree pruning ... ah, remember that
routine I wrote ...]

That wasn't me by the way - I did Backgammon. ;-)

Regards,
Fergus
 
great reply fergus... that just made my day.
Your whit is truly appreciated in a world that is sometimes severly lacking.

so now back to my original issue... do you have any solutions?
 
Hi Derian,

I did a search on Google for: Chess Algorithm Free Source

Free Chess Program (Source)
http://www.gnu.org/software/chess/chess.html
This is probably C or C++ and pretty unreadable but the FAQ gave me

A forum which provides general information on chess programming
newsgroup rec.games.chess.computer

Yahoo have
groups.yahoo.com/group/chess-engines/

Don't bother with Star Chess (not Chess) or Chines Chess (18 circular
pieces per player)

Here's a free source for a chess program. It doesn't say what language.
http://games.newfreeware.com/programs/762/

Happy algorithming :-)

Regards,
Fergus
 
Back
Top