Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Creating a Chess AI. Is this bad programming?

Name: Anonymous 2010-11-12 11:08

Creating the human interface.

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: Anonymous 2010-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.

Name: Anonymous 2010-11-12 11:47

So... your post has nothing at all to do with the subject line?

Welcome to /prog/!

Name: Anonymous 2010-11-12 11:49

>>3

It does. It's the human interface of an chess AI program.

tbh I wanted to capture your attention a bit.

Name: Anonymous 2010-11-12 12:05

Never mind. Got a better idea. Is [prog]spoiler[/prog] still unable to delete posts?

Name: Anonymous 2010-11-12 12:37

>>5
Why, when we could demonstrate the error of your thread to the ages?

Name: Anonymous 2010-11-12 13:08

>>6

error

What error exactly are you referring to?

Name: Anonymous 2010-11-12 13:25

>>7
Your existence to name one.

Name: Anonymous 2010-11-12 13:38

>>8

Your existence to name one.

I don't think that syntax is gonna get compiled. Care to recode?

Name: Anonymous 2010-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.

Name: Anonymous 2010-11-13 6:24

>>10

>Chess Engine Communication Protocol

FFUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU

5 hours of wasted time. FUCK!

Name: Anonymous 2010-11-13 13:09

>>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

Name: Anonymous 2010-11-13 14:15

>>12

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: Anonymous 2010-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.

Name: Anonymous 2010-11-14 19:37

>>14
Voyeurism at its best!!!

Name: Anonymous 2010-11-14 20:56

>>5
[prog]spoiler[/prog]
I lold.

Name: Anonymous 2010-11-14 21:09

>>16
Same.

Don't change these.
Name: Email:
Entire Thread Thread List