This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
Chess.java | ||
| |
ChessController.java | ||
| |
ChessGUI.java | ||
| |
ChessServer.java | ||
| |
Chessboard.java | ||
| |
FixedSizeJPanel.java | ||
| |
README | ||
| |
game/ | ||
| |
images/ |
Koh Wei Jie Instructions Client For each client computer: 1.Ensure that the operating environment of the computer has Java 6.0 installed and supports running Swing applications. 2.Navigate to the directory that contains the file Chess.class. 3.Run the command “java Chess” in the command-line, or use another method to invoke the Java Virtual Machine to run the file Chess.class . 4.When the game window opens, enter your name into the textfield labelled “Your Name”. 5.If the server's address and / or port are different from the default values, change them by editing the “Connect to ” and “Port” fields respectively. 6.Click the Connect button. 7.Choose an opponent to play chess with from the drop-down list labelled “Select an opponent.” This list will update itse lf every second, so the names of any new players connected to the server will be reflected in the list automatically. Wait for the challenged player to accept your offer. 8.If a potential opponent chooses your name in his or her client, you will be asked to accept or reject his or her offer to play a new game of chess. Select the “Accept” or “Reject” buttons to make your choice. 9.Once you or your opponent has accepted your offer to play chess, the game will begin. 10.Drag and drop pieces on the game board to play. 11.When dragging a piece, green squares indicate positions which are legal moves, and red squares indicate legal captures. 12.Press “Draw” to propose a draw. 13.Press “Resign” to resign. 14.Type text into the text field below the text area labelled “Chat” and click the “Send” button to send a message to your opponent. 15.You will see the conversation between yourself and the opponent in the text area labelled “Chat” in real-time. Server In the computer running the server; 1.Ensure that the operating environment of the computer has Java 6.0 installed and is connected to the network that the clients are on. 2.Navigate to the directory containing ChessServer.class . 3.Run the command “java ChessServer”. 4.The server will start and listen to port 8001. Development I won't maintain this software because of other commitments. Please feel free to use this code, which I hereby license under the GNU Public License v3. Credits I would like to thank Cburnett (http://en.wikipedia.org/wiki/User:Cburnett) for the images of the chess pieces. http://en.wikipedia.org/wiki/Template:Table_chess_pieces












