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.
Please follow this Tutorial to set up the necessary environment before you 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
- Log in or register a new account.
- Join a game with 2-4 users, try to form the number 24 using the four given card values and arithmetic operations
(+, -, *, /)
. - The first player to correctly form 24 wins the round.
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.
- 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.
- 都看到这了,说一句谢谢学长不过分吧,我亲爱的好学弟/学妹。
(๑*◡*๑)