No description
This repository has been archived on 2025-04-11. You can view files and clone it, but cannot push or open issues or pull requests.
Find a file
2015-11-03 23:49:34 -06:00
Resources Add files to git respository 2015-11-02 16:59:03 -06:00
Board.cpp clean code for submission 2015-11-03 23:27:33 -06:00
Board.h fixed undo 2015-11-03 23:00:12 -06:00
Client.java Client updates board periodically and Server sends updates correctly to each client. 2015-11-03 23:09:37 -06:00
Engine.cpp clean code 2015-11-03 23:36:52 -06:00
Engine.h clean code for submission 2015-11-03 23:27:33 -06:00
makefile Completely separated all parser code into Parser.cpp and Parser.h. 2015-11-03 15:12:29 -06:00
MNode.cpp master AI commit, stable w/o alpha beta 2015-11-02 16:19:42 -06:00
MNode.h master AI commit, stable w/o alpha beta 2015-11-02 16:19:42 -06:00
Parser.cpp fixed undo 2015-11-03 23:00:12 -06:00
Parser.h clean code for submission 2015-11-03 23:27:33 -06:00
Piece.cpp master AI commit, stable w/o alpha beta 2015-11-02 16:19:42 -06:00
Piece.h master AI commit, stable w/o alpha beta 2015-11-02 16:19:42 -06:00
README.md Update README.md 2015-11-03 23:49:34 -06:00
Server.cpp Merge branch 'master' of https://github.tamu.edu/brj2013/Breakthrough 2015-11-03 23:28:40 -06:00
test.cpp Stable AI w/o error printing 2015-11-02 16:42:47 -06:00

Breakthrough

Repository for the second CSCE 315 project

To compile everything:

make or make all

NOTE To remove all .class and .o files, just use: make clean.

To run test:

./test

To launch the server:

./server [port #]

Java Client is now functional with GUI.

To launch the client:

java Client [server address] [port #] Where [server address] is linux.cs.tamu.edu (or whatever server you're on) and [port #] is the same as server's [port #].

Running the client:

  • Once the server is running, join via client.
  • Enter the password to access the server
  • Select a game type
  • Select a difficulty (if it's Client vs. AI)
  • Play the game by clicking a piece and then clicking a valid spot to place that piece
  • Upon game completion, the board interface will close, inform the client the game is over, and end the program

Troubleshooting:

  • Make sure you enable X11 forwarding in your PuTTY settings before you start your connection to the linux server.
  • Make sure you also open XLaunch and just click next until finish so that PuTTY doesn't whine about not having a server to start up the client with.
  • The GUI takes two moves at a time, to play click the square with the piece you want to move, then the square you want to move it to. Remember there is very minimal error checking on the GUI side, so if you make an incorrect move, the server will just yell at you and the client will continue like nothing happened. I left in some Debugging output on both the Client and Server side so you guys can tell where you messed up. Let me know if you experience any bugs.
  • Be patient. Swing is very slow and it'll take a second or two for it to initialize the window and a couple seconds to render the icons each time you make a move (depending on if you're using a VPN or not, runs smoothly on campus).