Skip to content

Latest commit

 

History

History
47 lines (33 loc) · 1.15 KB

README.md

File metadata and controls

47 lines (33 loc) · 1.15 KB

Rock Paper Scissors

This is a simple game website to play rock paper scissors with register, login, levels and charts

Description

Fully responsive website with registering users, 3-level AI (Amateur, Intermediate, Expert) and charts (winrate, played games) in the stats page.

Page is using python and matplotlib module to generate charts

game.php

Setup

To setup python - head into the config file located at dir config/config.ini and paste your full path to the interpreter

[ PYTHON ]

; PATH TO THE PYTHON INTERPRETER ;
interpreter_path =

; YOU CAN CHANGE THE VALUE TO TRUE HERE IF YOU HAVE ENV PYTHON VAR (1) ;
; ELSE LEAVE IT FALSE (0) ;
env_variable = 0

To find out where your python interpeter is type in cmd:

where python

If python interpeter and env variable is not set - charts will not be generated, but ranking will be by php.

ranking.php

To setup the database - import the 127_0_0_1.sql to your host.