Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Go - For those who want to learn
Index -> Programming, Java -> Java Submissions
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
McKenzie




PostPosted: 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.



Go7.java
 Description:

Download
 Filename:  Go7.java
 Filesize:  16.47 KB
 Downloaded:  294 Time(s)


Go0.java
 Description:

Download
 Filename:  Go0.java
 Filesize:  3.54 KB
 Downloaded:  286 Time(s)


Go1.java
 Description:

Download
 Filename:  Go1.java
 Filesize:  4.02 KB
 Downloaded:  241 Time(s)


Go2.java
 Description:

Download
 Filename:  Go2.java
 Filesize:  5.32 KB
 Downloaded:  242 Time(s)


Go3.java
 Description:

Download
 Filename:  Go3.java
 Filesize:  7.41 KB
 Downloaded:  228 Time(s)


Go4.java
 Description:

Download
 Filename:  Go4.java
 Filesize:  7.99 KB
 Downloaded:  237 Time(s)


Go5.java
 Description:

Download
 Filename:  Go5.java
 Filesize:  8.92 KB
 Downloaded:  251 Time(s)


Go6.java
 Description:

Download
 Filename:  Go6.java
 Filesize:  11.5 KB
 Downloaded:  289 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
Hikaru79




PostPosted: Tue Mar 22, 2005 11:41 am   Post subject: (No 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 ^__^
McKenzie




PostPosted: 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.


The Extension 'class' was deactivated by an board admin, therefore this Attachment is not displayed.

Hikaru79




PostPosted: 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? Embarassed

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




PostPosted: 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.


The Extension 'class' was deactivated by an board admin, therefore this Attachment is not displayed.

Martin




PostPosted: Wed Mar 30, 2005 1:49 pm   Post subject: (No subject)

Very cool. Smile
Display posts from previous:   
   Index -> Programming, Java -> Java Submissions
View previous topic Tell A FriendPrintable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 6 Posts ]
Jump to:   


Style:  
Search: