• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Connect-4 source code

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Do you know where i can find the connect-4 game source code, but not an applet, i'm just looking for this game implemented as an application, where many classes implement the program. I just want to see, java techniques like inheritance, encapsulation, observe-observer model.
If anyone has the source code, please e-mail it to me at flashprx@hotmail.com
 
Ranch Hand
Posts: 230
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm sure if you found it as an applet it wouldn't be that difficult to convert it to an application. Infact I found a small source code which will run an applet as an application.
here it is:
import java.awt.*;
public class MyApplication
{
public static void main(String[] args)
{
/* Instantiate existing Applet */
SomeApplet applet = new SomeApplet();
Frame frame = new Frame("Applet");
/* Add Applet to Frame container */
frame.add(applet);
frame.setSize(350,200);
frame.show();
/* Initialize/Start Applet */
applet.init();
applet.start();
}
}
Hope this helps,
Frank
 
reply
    Bookmark Topic Watch Topic
  • New Topic