Go - For those who want to learn
Author |
Message |
McKenzie
|
Posted: 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.
Description: |
|
Download |
Filename: |
Go7.java |
Filesize: |
16.47 KB |
Downloaded: |
299 Time(s) |
Description: |
|
Download |
Filename: |
Go0.java |
Filesize: |
3.54 KB |
Downloaded: |
295 Time(s) |
Description: |
|
Download |
Filename: |
Go1.java |
Filesize: |
4.02 KB |
Downloaded: |
248 Time(s) |
Description: |
|
Download |
Filename: |
Go2.java |
Filesize: |
5.32 KB |
Downloaded: |
250 Time(s) |
Description: |
|
Download |
Filename: |
Go3.java |
Filesize: |
7.41 KB |
Downloaded: |
237 Time(s) |
Description: |
|
Download |
Filename: |
Go4.java |
Filesize: |
7.99 KB |
Downloaded: |
244 Time(s) |
Description: |
|
Download |
Filename: |
Go5.java |
Filesize: |
8.92 KB |
Downloaded: |
259 Time(s) |
Description: |
|
Download |
Filename: |
Go6.java |
Filesize: |
11.5 KB |
Downloaded: |
301 Time(s) |
|
|
|
|
|
|
Sponsor Sponsor
|
|
|
Hikaru79
|
Posted: Tue Mar 22, 2005 11:41 am Post subject: (No subject) |
|
|
Mr. Mackenzie, you r0x0r. I'm sure my approval is extremely gratifying 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? I really wanna see Mr. Mckenzie's Go program ^__^
|
|
|
|
|
|
McKenzie
|
Posted: Tue Mar 22, 2005 3:44 pm Post subject: (No 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.
|
|
|
|
|
|
Hikaru79
|
Posted: Wed Mar 23, 2005 11:12 am Post subject: (No 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?
I would try things out on my own to fix it, but again... I don't hava Java
|
|
|
|
|
|
McKenzie
|
Posted: Wed Mar 23, 2005 6:55 pm Post subject: (No 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.
|
|
|
|
|
|
Martin
|
Posted: Wed Mar 30, 2005 1:49 pm Post subject: (No subject) |
|
|
Very cool.
|
|
|
|
|
|
|
|