一个可以进行网络对战的国际象棋源码。这个程序可以换棋子和棋盘,还有聊天、以applet运行等功能,非常不错!!一、用ant编译源码(所有源文件及目录结构请下载)C:\cs>ant compileBuildfile: build.xmlcompile:[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 SUCCESSFULTotal time: 14 seconds 二、在命令行启动服务端C:\cs>java com.borland.samples.chess.server.ChessServer05-12-28 下午09时44分43秒 CSTRead 2 userId records from C:\cs\users.objHello 8889Address of the Server :microsof-0f0cfb/127.0.0.1HelloThread: Waiting for someone to talk to me on port 8889三、打开两个dos窗口,在命令行分别启动两个客户端程序,每一个客户端程序都会弹出登录对话框,请输入你的姓名和口令登录。如其中之一C:\cs>java com.borland.samples.chess.client.ChessViewerimageName = images/cmpieces.gifimageName = images/owlpieces.gifimageName = images/ibmpieces.gifno file specifiedImageFactory.square size = 49 pieces=23671010CV8889Received: 8890ClientSender:Name with 2 parametersClientSender:List with 0 parametersClientSender:AdjuornedList with 0 parameters
1