Our motto is play rock/scissors/paper in your native language! (Provided that your language is supported by terminal unlike Persian 😑)
NOTE: Terminal may refer to CMD or Console or command prompt
To run the game first install Python programming language.
Python is installed on Ubuntu (or at least, it's what I saw) but if python isn't installed in you system visit https://python.org and install python latest version.
Then open terminal and go to where you cloned this repository.
as you are in GNU/Linux put following command in terminal if python installed as python3
:
./game.py
else if you are not in GNU/Linux or python is not installed as python3
put python name in a variable called PYTHON
. Python name is often python
|py
|python3
:
PYTHON=python3 # for me it is python3
$PYTHON game.py
Check lines 5 to 20 and change following variables
R"""Define alternative of following objects
in a particular language. Perisan by default
"""
rock = "سنگ"
paper = "کاغذ"
scissors = "قیچی"
selections = [rock, paper, scissors]
r"""Define alternative of game states (
equal,user won, system won) in a specifc
language. Persian by default
"""
user_won = "کاربر برد"
system_won = "سیستم برد"
equal_wonno = "برابر"
to your language substitute.
- Ranking system