Skip to content

JPoker24 is a game that leverages RMI, JDBC, JNDI, and JMS to support multi-player, multi- room and network play.

Notifications You must be signed in to change notification settings

Henryyy-Hung/HKU-COMP3358-JPoker24

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JPoker24 Game

1. Overview

JPoker24 is a multiplayer card game where players use arithmetic expressions to reach the target number 24 using the values of four dealt cards. It support multi-player, multi-room, and real-time update of leaderboard.

This project utilizes technologies such as RMI, JDBC, JNDI, JMS, MySQL, and Glassfish to handle game logic, database interactions, and client-server communications.

2. Environment Set Up

Please follow this Tutorial to set up the necessary environment before you start.

3. Quick Start

Open termials under root directory of the project.

chmod 777 ./run.sh     # Enable the start script
./run.sh compile       # Compile java class for server and client
./run.sh java server   # Run the server
./run.sh java client   # Run the client in another terminal

4. Playing the Game

  1. Log in or register a new account.
  2. Join a game with 2-4 users, try to form the number 24 using the four given card values and arithmetic operations (+, -, *, /).
  3. The first player to correctly form 24 wins the round.

5. Game UI

GUI Overview

6. Build Jar & Run Jar

Open termials under root directory of the project.

chmod 777 ./run.sh     # Enable the start script
./run.sh build         # Build `.jar` file for server and client
./run.sh jar server    # Run the server jar
./run.sh jar client    # Run the client jar in another terminal

Note: You could find the .jar file at /lib directory.

7. Notes

  • Ensure all services and the database are running before starting the game server and clients.
  • The application is configured to run on localhost. Adjust the configurations if deploying on a different server or in a distributed environment.
  • For detailed report, please refer to Here.
  • 都看到这了,说一句谢谢学长不过分吧,我亲爱的好学弟/学妹。(๑*◡*๑)

About

JPoker24 is a game that leverages RMI, JDBC, JNDI, and JMS to support multi-player, multi- room and network play.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published