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.
- Clone the repository to your computer
git clone https://github.com/TekyaygilFethi/PythonTabooGame.git
-
Go to cloned folder via cd.
cd {cloned folder}
-
Install necessary google translate module via pip:
pip install googletrans
- 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"
todest="{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 thepreparejson.prepare_json()
line and run this command from terminal:
python main.py
- This execution may be take a while, please wait patiently!
- Then start main.py file via running this command on the terminal:
python main.py
- 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.
- 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)
- So the first team will start and you are good to go!