This server program acts as both a dealer and the server for hosting Blackjack games with up to a maximum of 6 clients per room, with dynamic allocation of players to new game rooms once the current room is full.
The protocol of this program is laid out in this Google Doc.
- Compile and run
CentralServer.java
to open the main program. - Follow the rest of the instructions in the GUI.
To enable/disable the debug messages or change other constants used in the program (e.g. the delay between messages being sent), change the values of the constants at the top of Server.java
(lines 27-29). Please note that we cannot guarantee that the server will run as smoothly with some of these constants at non-original values due to dependancy of delays for various synchronized elements.