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
Alexander Huddleston e284067123 Edited makefile.
2015-10-29 22:46:07 -05:00
Board.cpp minmax structure done 2015-10-29 08:58:32 -05:00
Board.h minmax structure done 2015-10-29 08:58:32 -05:00
Client.java Edited makefile. 2015-10-29 22:46:07 -05:00
Engine.cpp Cleaning up endgame for test. 2015-10-29 09:49:01 -05:00
Engine.h minmax structure done 2015-10-29 08:58:32 -05:00
makefile Edited makefile. 2015-10-29 22:46:07 -05:00
MNode.cpp minmax structure done 2015-10-29 08:58:32 -05:00
MNode.h minmax structure done 2015-10-29 08:58:32 -05:00
Piece.cpp Updating Branches. 2015-10-28 15:19:53 -05:00
Piece.h Updating Branches. 2015-10-28 15:19:53 -05:00
README.md Update README.md 2015-10-29 22:33:32 -05:00
Server.cpp GUI Fully functional to play. Need to encorporate quit, undo, and game over conditions. 2015-10-29 22:18:52 -05:00
Serverbackup.txt testing 2015-10-28 15:08:07 -05:00
test.cpp stable AI 2015-10-28 17:12:44 -05:00

Breakthrough

Reposity for the second CSCE 315 project

To compile everything:

make or make all

To run test:

./test

To launch the server:

./server [port #]

Java Client is now functional with GUI.

To compile the client:

javac Client.java

To run:

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 #].

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.
  • You will need to manually enter "1" when you start the client. Haven't gotten around to doing that frame just yet, but mostly because the AI stuff isn't finished yet.
  • 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.
  • The game will not automatically close on Game Over, you will have to close the window yourself, but that's not exactly a bug, so I'm just going to leave it in.
  • 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).