TekyaygilFethi / PythonTabooGame

Python Taboo game is a classical Taboo game.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Python Taboo Game

Python Taboo game is a classical Taboo game contains Turkish words. If you want to english version of this game, you have to change this code:

for k,v in loaded_dict.items():
    k = translator.translate(k, dest="tr").text
    v = [translator.translate(v_single, dest="tr").text for v_single in v if v_single != '']
    alldata[k] = v

into this:

for k,v in loaded_dict.items():
    alldata[k] = v

in preparejson.py file. This project converts English words to Turkish words with the help of Google's Translator module.

Run on computer

  1. Clone the repository to your computer
  git clone https://github.com/TekyaygilFethi/PythonTabooGame.git
  1. Go to cloned folder via cd. cd {cloned folder}

  2. Install necessary google translate module via pip:

  pip install googletrans
  1. If you want to create your own version of Taboo (it differs with language) you can either do it on English (which shown in above) or use your own language via changing the dest="tr" to dest="{your desired language code}". You can check all the supported languages with executing this line: print(googletrans.LANGUAGES). Once you changed this part, you need to uncomment the preparejson.prepare_json() line and run this command from terminal:
  python main.py
  1. This execution may be take a while, please wait patiently!
  2. Then start main.py file via running this command on the terminal:
  python main.py
  1. The game asks you for the limit. Set the limit. If one of the teams approach this score, the game will be over and this team will be the winner.
  2. If you want to quit while game is on, press q and then Enter, otherwise press only Enter (you can type anything except q if you want it won't affect the result)
  3. So the first team will start and you are good to go!

About

Python Taboo game is a classical Taboo game.


Languages

Language:Python 100.0%