Skip to content

Arawnn/5000-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

5000

Online version of the dice game 5000 in which the goal is to gain 5000 points. Game rules can be read here [FR]

Prerequisites

Just a functionnal webserver with PHP and MySQL properly configured.

Installing

In your server configuration, create a virtualhost the5000.com pointing to the project's main directory, may it be www or www/my/sub/directories

Add the following line to your hosts file (/etc/hosts on Linux/Mac, C:\Windows\System32\drivers\etc\hosts on Windows) 127.0.0.1 the5000.com

Add a config.ini file in src/conf/ with the following content completed with your configuration

driver=mysql
host=localhost
database=db_name
username=db_user
password=db_password
charset=utf8
collation=utf8_general_ci
prefix=

Run

In your browser, access to the5000.com. If it works, run the server by opening a new tab the5000.com/bin/game-server.php. It won't stop loading as the game server is listening to new connections.

Back to the main tab, you can click "Connexion au serveur", leaving the host input blank. A green message should tell you the connection was done successfully and the commands input is now available.

To send commands, type anything then Enter. Acknowledgement is done through the JS console.

Stopping the server

Even if the tab is closed, the server still runs. You can stop the server by sending the command "stop" and each client will see its connection closed.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published