By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,576 Members | 1,799 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,576 IT Pros & Developers. It's quick & easy.

chess

P: n/a
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
Nov 20 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
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.

"derian" <--*******@astutesolutions.com---> wrote in message
news:Oh**************@tk2msftngp13.phx.gbl...
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

Nov 20 '05 #2

P: n/a
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?
"derian" <--*******@astutesolutions.com---> wrote in message
news:Oh**************@tk2msftngp13.phx.gbl...
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

Nov 20 '05 #3

P: n/a
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
Nov 20 '05 #4

P: n/a
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?

"Fergus Cooney" <fi******@tesco.net> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
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

Nov 20 '05 #5

P: n/a
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
Nov 20 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.