This example should demonstrate the work of CORBA in the Swing based network game.The game was popular in my student times. After doing some web search I concluded that the game is called Five-in-a-row in English.

Five-in-a-row is a two player strategy game. The players are connected via network using CORBA-based RMI/IIOP protocol and make they moves with the help of the Swing-based interface. While playing, the users can also chat.

The system consists of the single server and any number of interconnected players. The person, willing to play, starts the client and connects the server. The server redirects call to the partner that has previously connected the same server, also willing to play. Then both clients communicate directly with each other.

I also wrote README.html for game rules and installation details.

We managed to fix the majority of the Swing problems that prevented this application from running, but I the ctr-V (paste) is still not working at the moment. To work around, the application has the temporary "paste" button. The application is currently tested while running server and both clients on the same machine, not over network. As such, it seems doing that expected. JamVM+current Classpath interoperates with Sun's 1.5 implementation.


2005-11-15  Audrius Meskauskas  <[EMAIL PROTECTED]>

   * examples/gnu/classpath/examples/CORBA/swing/README.html,
   examples/gnu/classpath/examples/CORBA/swing/x5/CanvasWorld.java,
   examples/gnu/classpath/examples/CORBA/swing/x5/ChatConstants.java,
   examples/gnu/classpath/examples/CORBA/swing/x5/ClientFrame.java,
   examples/gnu/classpath/examples/CORBA/swing/x5/Demo.java,
   examples/gnu/classpath/examples/CORBA/swing/x5/GameManager.java,
   examples/gnu/classpath/examples/CORBA/swing/x5/GameManagerImpl.java,
   examples/gnu/classpath/examples/CORBA/swing/x5/IorReader.java,
   examples/gnu/classpath/examples/CORBA/swing/x5/OrbStarter.java,
   examples/gnu/classpath/examples/CORBA/swing/x5/Player.java,
   examples/gnu/classpath/examples/CORBA/swing/x5/PlayerImpl.java,
   examples/gnu/classpath/examples/CORBA/swing/x5/PlayingDesk.java,
   examples/gnu/classpath/examples/CORBA/swing/x5/State.java,
   examples/gnu/classpath/examples/CORBA/swing/x5/X5Server.java,
examples/gnu/classpath/examples/CORBA/swing/x5/_GameManagerImpl_Tie.java,
   examples/gnu/classpath/examples/CORBA/swing/x5/_GameManager_Stub.java,
   examples/gnu/classpath/examples/CORBA/swing/x5/_PlayerImpl_Tie.java,
examples/gnu/classpath/examples/CORBA/swing/x5/_Player_Stub.java: New files.

Attachment: five.tar.gz
Description: GNU Zip compressed data

_______________________________________________
Classpath-patches mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/classpath-patches

Reply via email to