Hi,
I'm trying to make a little chess game,
in C++, is in terminal because still I don't know a good GUI package for C++ sorry I'm n00b...
btw I got to print out the board:
like this: [code]
-|--a-|--b-|--c-|--d-|--e-|--f-|--g-|--h-|
8|-bR-|+bk+|-bB-|+bQ+|-bK-|+bB+|-bk-|+bR+|
7|+bP+|-bP-|+bP+|-bP-|+bP+|-bP-|+bP+|-bP-|
6|----|+--+|----|+--+|----|+--+|----|+--+|
5|+--+|----|+--+|----|+--+|----|+--+|----|
4|----|+--+|----|+--+|----|+--+|----|+--+|
3|+--+|----|+--+|----|+--+|----|+--+|----|
2|-wP-|+wP+|-wP-|+wP+|-wP-|+wP+|-wP-|+wP+|
1|+wR+|-wk-|+wB+|-wQ-|+wK+|-wB-|+wk+|-wR-|
[\code]
and one can tell like in chess with the sentence "(e2:e4)" to move the piece from e2 to e4
but now what I need to make a AI?
I'll paste the code in pastebin so you can have a look:
>>84
Yeah, homeboy finally accepted the fact that he was too dumb to become a computer programmer, so he went back to his former job of being the president of NAMBLA.
>>88
I don't about C++, but at least in Java, there are tools that make building a GUI a breeze. All that's involved is just clicking a form button, and then using the drop and drag feature to resize and move things around. Hell, even the moron computer science major who can't seem to land a programming job could do it.
Name:
Anonymous2012-01-15 22:02
There at two checker AI bots doing battle at table 22 in Amoeba Room on Yahoo Checkers
the whole problem with move eval in chess (more or less) goes something like this;
To evaluate one first move, you kind of need to look at the opponents next (possible) move(s)... and then to see if his move(s) is/are really any good, you need to step ahead again, ...etc, etc, and this is known as the 'horizon effect'
just to illustrate, the first four moves can produce this number of unique boards (starting at the zeroth move) 1 > 21 > 421 > 5623 > 75321 (^^ as calculated by me & my boxz ;) // ignoring all duplicate boards but summing all previously seen.. eg the first move has only 20 actual outcomes