Network source told the International Chess
Abstract: network source told the International Chess
: 666]
</ Td> </ tr> <tr> <td height="35" valign="top" class="ArticleTeitle"> <table width = "100%" border = "0" cellspacing = "0" cellpadding = " 0 "> <tr> <td width="431" height="86" align="center" valign="top">
A network can be a battlefield of chess source. This procedure can be for a pawn and board, and chat applet to run, and other functions, very good! !
One with ant-source compiler (all source files and directory structure download)
C: \ cs> ant compile
Buildfile: build.xml
Compile:
[Mkdir] Created dir: C: \ cs \ build
[Javac] Compiling 60 source files to C: \ cs \ build
[Javac] Note: * uses or overrides a deprecated API.
[Javac] Note: Recompile with-Xlint: deprecation for details.
[Javac] Note: Some input files use unchecked or unsafe operations.
[Javac] Note: Recompile with-Xlint: unchecked for details.
BUILD SUCCESSFUL
Total time: 14 seconds
Second, in order to activate service -
C: \ cs> java com.borland.samples.chess.server.ChessServer
05-12-28 22:44:43 CST
Read 2 userId records from C: \ cs \ users.obj
Hello 8889
Address of the Server: microsof-0f0cfb/127.0.0.1
HelloThread: Waiting for someone to talk to me on port 8889
Third, open two dos window, in order to activate the two clients, each client program will pop-up login dialog, please enter your name and password login. If one of them
C: \ cs> java com.borland.samples.chess.client.ChessViewer
ImageName = images / cmpieces.gif
ImageName = images / owlpieces.gif
ImageName = images / ibmpieces.gif
No file specified
ImageFactory.square size pieces = 49 = 23671010
CV8889Received: 8890
ClientSender: Name with two parameters
ClientSender: List with parameters 0
ClientSender: AdjuornedList with parameters 0
Operation interface as follows.
In order to begin the game, the opponent's name first selected, then click on the "challenge challenge" button, and wait for the opponent battle.
</ Td> <td width="253" valign="top"> </ td> </ tr> <tr> <td height="20" colspan="2">
</ Td> </ tr> </ table>
This procedure can be for a pawn and board
</ Td> </ tr> <tr>
↑ Back
Tags: network, out source, source






