so im making this chess game right? but im having problems implementing a chess engine to be the "brain" of the CPU opponent
right now the player can only face another human opponent
ive tried many chess engines like cheoss and GTChess, but most off them are either entire chess games minus a visual interface or completely unintelligible becuz the coder didnt put any instructions
the move method uses an int as a parameter, wtf?
anyways, what im looking for is a code that takes my moves as parameters and returns other moves, chess AI
anyone know a good chess engine for that?
24 replies to this topic
#1
Posted 10 July 2011 - 04:06 PM
|
|
|
#2
Posted 10 July 2011 - 07:59 PM
Have you looked at GNU Chess — GNU Project — Free Software Foundation (FSF)
#3
Posted 10 July 2011 - 08:28 PM
WingedPanther said:
Have you looked at GNU Chess — GNU Project — Free Software Foundation (FSF)
ok...
so what do i exactly have to download?
i mean theres a lot of stuff in that folder, even in the chess folder, what should i download?
#4
Posted 11 July 2011 - 01:40 AM
#5
Posted 11 July 2011 - 07:53 PM
Revolt said:
*facepalm*
what makes you believe, i posted this on the java section looking for some c++ code?
#6
Posted 12 July 2011 - 01:04 AM
Firstly, I didn't bother checking the source code. I only answered your question of what file you should download.
Secondly, you can interface Java and C++ so you should be able to use that chess library as is by implementing a wrapper around it in Java: Java Tip 17: Integrating Java with C++ - JavaWorld
As for native Java engines I'm afraid I can't help you with that since I have no experience in that field.
Secondly, you can interface Java and C++ so you should be able to use that chess library as is by implementing a wrapper around it in Java: Java Tip 17: Integrating Java with C++ - JavaWorld
As for native Java engines I'm afraid I can't help you with that since I have no experience in that field.
#7
Posted 12 July 2011 - 07:06 AM
GnuChess is a command-line program. You should be able to have Java issue the command-line prompts to the compiled .exe and parse the response string.
#8
Posted 14 July 2011 - 01:26 PM
WingedPanther said:
GnuChess is a command-line program. You should be able to have Java issue the command-line prompts to the compiled .exe and parse the response string.
uhmm... how do i do that, how i send the command line to the exe file and how i receive it?
#9
Posted 14 July 2011 - 02:43 PM
twinArmageddons said:
uhmm... how do i do that, how i send the command line to the exe file and how i receive it?
Let me google that for you
#10
Posted 15 July 2011 - 02:54 AM
Why don't you write your chess engine yourself? Seems like a simple task enough.
#11
Posted 16 July 2011 - 04:05 PM
Sinipull said:
Why don't you write your chess engine yourself? Seems like a simple task enough.
what? no!
ive already spent a month programming the chess game itself, i just need the AI opponent, plus i have no idea how to program a chess engine, because for starters, i suck at chess
#12
Posted 18 July 2011 - 08:59 AM
WingedPanther said:
GnuChess is a command-line program. You should be able to have Java issue the command-line prompts to the compiled .exe and parse the response string.
well now there are two problems, the first being, i dont know how to do that
the second, i cant find the .exe file on the gnuchess folder
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account


Back to top









