So I need to know when the user finally clicks somewhere to move a piece.
So the GUI class has this interface that detects mouse clicks and I just made the snippet executed at every click point to an array in the main program (pointer initiated in constructor) and change coordinates. Then I have a very small snippet in main program that loops until a change in coordinates is made.
Is the bad/good programming?
And different suggestions?
Name:
Anonymous2010-11-12 11:18
You could try using thread interfaces that have wait and resume subroutines but perhaps these same subroutines make use of loops. Idk, if it works, don't fix it, I suppose.
I don't think that syntax is gonna get compiled. Care to recode?
Name:
Anonymous2010-11-12 19:50
You shouldn't be writing a GUI. You should be writing your chess engine to use the Chess Engine Communication Protocol, then using one of the many free chess GUIs that already exist.
>>11
Keep trying. Then arm xboard/winboard with your shinny brans new AI and play pit it against real players and real ai at freechess.org. Or chessclub if you are faggot
It finished already dude. Will be pitting it against some GNU AI later this week. In the mean time it seems to be working well. AI wise it beats me but I'm a shitty careless player so yeah.
Name:
Anonymous2010-11-14 4:36
>>13
Fuck it. Logon to FICS as guest and observe its match against human(or Rybka, if you dare).
And post when you will be doing it. As voyeur, I want to observe it too.