Skip to content

This is a simple command-line game that tests your knowledge of Serbian vocabulary. The game randomly selects a word in Serbian, and you have to guess the correct translation in English.

License

Notifications You must be signed in to change notification settings

fenrisis/Serbian-Words-Game

Repository files navigation

Serbian Words Game Video Demo: https://youtu.be/76khYAtx4CY

Description: The project is a serbian word game made using python and is playable in the terminal by running the project.py file. This is a simple command-line game that tests your knowledge of Serbian vocabulary. The game randomly selects a word in Serbian, and you have to guess the correct translation in English.The program consists of a main function and 4 other subprograms/functions namely start_learning- Starts the game, generate_random_word-Generate a random word from the dictionary, get_translation- Get the translation of a word from the dictionary,get_options- Get a list of options, including the correct answer, for a given translation. The program randomly selects a word in Serbian, gets its translation, generates a list of options, including the correct answer, shuffles the options, and asks the user to select one. If the user's input is valid, the program checks if the user's guess matches the correct translation and updates the score and number of questions accordingly. The game continues until the user has answered 10 questions, and then displays the final score and a message based on the user's performance. The code also includes functions that generate a random word from the dictionary, get the translation of a word from the dictionary, and get a list of options, including the correct answer, for a given translation.

Requirements Python 3.x Pytest

python project.py Follow the prompts to enter your guesses. Customization: You can add your own words to the game by editing the dictionary.py file. Each line should contain a Serbian word and its English translation, separated by a comma.

License: This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments: Thanks to fenrisis for creating the original version of this game.

About

This is a simple command-line game that tests your knowledge of Serbian vocabulary. The game randomly selects a word in Serbian, and you have to guess the correct translation in English.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages