Computer Science Canada

Go - For those who want to learn

Author:  McKenzie [ Fri Mar 18, 2005 2:09 pm ]
Post subject:  Go - For those who want to learn

This is Go for the sake of teaching basic java design. This program was
developed in stages. If you are trying to learn from this go through them in
order. Make sure you understand one before going on to the next.

Author:  Hikaru79 [ Tue Mar 22, 2005 11:41 am ]
Post subject: 

Very Happy Mr. Mackenzie, you r0x0r. I'm sure my approval is extremely gratifying Wink Do you play Go yourself? Do you have a ranking? Or are you only interested in it as far as programming it is concerned?

Could someone compile this and post it here, please? I only have a JRE here in Romania, so I can't compile it myself, but if someone does it for me, I could run it... please? Very Happy I really wanna see Mr. Mckenzie's Go program ^__^

Author:  McKenzie [ Tue Mar 22, 2005 3:44 pm ]
Post subject: 

My wife and I used to play years ago but I havn't played a serious game in ten years. Here is the class file.

Author:  Hikaru79 [ Wed Mar 23, 2005 11:12 am ]
Post subject: 

Strange... I try to run, and I get
code:
C:\Documents and Settings\Terminalul Trei\Desktop>java Go7
Exception in thread "main" java.lang.NoClassDefFoundError: Board


Even though Board is clearly defined in Go7.java
code:
class Board extends JPanel
{


Does it need to be public in order for the Go7 class to use it? Or did you compile a different version of Go7?

Or, most likely of all, am I doing something stupidly wrong? Embarassed

I would try things out on my own to fix it, but again... I don't hava Java Sad

Author:  McKenzie [ Wed Mar 23, 2005 6:55 pm ]
Post subject: 

No, I'm just stupid. I forgot that I did it in two classes. Of course you need both class files for it to work.

Author:  Martin [ Wed Mar 30, 2005 1:49 pm ]
Post subject: 

Very cool. Smile


: