Git Product home page Git Product logo

henryyy-hung / hku-comp3358-jpoker24 Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 135.56 MB

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

Shell 8.43% Java 58.30% Batchfile 3.01% JavaScript 1.00% Roff 0.27% HTML 18.71% CSS 2.49% PLSQL 0.93% SQLPL 0.15% Ruby 1.62% C# 2.86% Python 2.10% Haskell 0.11%
glassfish jdbc jms jndi mysql rmi java

hku-comp3358-jpoker24's Introduction

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.
  • 都看到这了,说一句谢谢学长不过分吧,我亲爱的好学弟/学妹。(๑*◡*๑)

hku-comp3358-jpoker24's People

Contributors

henryyy-hung avatar

Stargazers

Lau Tsz Yin avatar

Watchers

 avatar

Forkers

bob85670

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.