Skip to content

OswinC/hearts

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gong Zhu!

This is forked from ryanj/hearts, in an attempt to adapt it for the Gong Zhu (Chinese Hearts) rule set (https://en.wikipedia.org/wiki/Gong_Zhu).

A multiplayer online Gong Zhu card game application using 'ws' (websocket) nodejs module.
This software is distributed under the General Public Licence.

Compile dependencies:

$ cd hearts
$ npm install

Set connection parameters:

Prepare a config file exporting following environment variables:

export OPENHEARTS_HTTP_IP="`ipconfig getifaddr en0`"
export OPENHEARTS_HTTP_PORT=8080
export OPENHEARTS_WS_IP="$OPENHEARTS_HTTP_IP"
export OPENHEARTS_WS_PORT=8000
export OPENHEARTS_MYSQL_DB_HOST=localhost
export OPENHEARTS_MYSQL_DB_PORT=3306
export OPENHEARTS_MYSQL_DB_USERNAME=user
export OPENHEARTS_MYSQL_DB_PASSWORD=pw

Note: Set owner-only permission to the config file as it contains sensitive information

Run:

(Make sure you have a mysql service running)
$ run.sh [config] # It will try ~/.openhearts_config if config is not provided

About

This is a fork from ryanj/hearts, in an attempt to adapt it for Gong Zhu flavor (Chinese hearts trick-taking card game https://en.wikipedia.org/wiki/Gong_Zhu)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • HTML 58.7%
  • JavaScript 22.9%
  • Shell 10.3%
  • CSS 8.1%