The link to Famous Places and Countries Quiz
The Famous Places and Countries game is an interactive educational quiz designed to help users learn about famous places and countries around the world and test their knowledge of them.
- Press the orange button - ‘Start the program’ and the terminal window will open.
- We are greeted with a welcome speech.
.
- After entering your username, you can start playing the game.
- You have 10 questions.
- And so we get the first question about the Most Famous Place in the World and we have to guess in which country it is located.
- The game is to write the correct country where the Famous Place is located. You will receive a message from the game for your answer.
- At the end of the game, you will receive statistics on your correct answers.
Users visiting the site for the first time are offered a simple and intuitive process for setting up their gaming preferences. Clear instructions and an easy-to-navigate interface ensure a seamless experience.
Returning users
- As a potential client, I want to understand the expertise of the developer in creating interactive and educational games.
- As a user interested in educational games, I want detailed information about each feature and how to use it.
- Default user name: if the user has not entered his name, then we assign him Superuser.
- Interactive gameplay: Users can guess the names of various landmarks.
- Instant feedback: Users receive feedback on their answers.
- Global places: The game features a diverse set of landmarks from around the world.
- Leaderboard: Add a scoring system and leaderboard.
- Additional locations: Add more locations to increase the difficulty of the game.
- Hints: Add hints for each landmark.
-
Python: used to anchor the project and direct all application behavior
-
JavaScript: used to provide the start script needed to run the Code Institute mock terminal in the browser
-
GIMP was used to make and resize images for the README file.
- random was used to implement pseudo-random number generation.
- os was used to clear the terminal before running the program.
- time was used to breack the terminal for short waiting.
- Colorama was used to add colors and styles to the project.
- VSCode was used as the main tool to write and edit code.
- Git was used for the version control of the website.
- GitHub was used to host the code of the website.
- Heroku CLI for deployment
- The program was deployed to Heroku.
Note:
- This project requires you to have Python installed on your local PC:
pip install python
- You will also need pip installed to allow the installation of modules the application uses.
pip install python3-pip
Create a local copy of the GitHub repository by following one of the two processes below:
-
Download ZIP file:
- Go to the GitHub Repo page.
- Click the Code button and download the ZIP file containing the project.
- Extract the ZIP file to a location on your PC.
-
Clone the repository:
- Open a folder on your computer with the terminal.
- Run the following command
git clone https://github.com/lazoriks/FamousPlaces_Country_QuizPP3.git
-
Alternatively, if using Gitpod, you can click below to create your own workspace using this repository.
-
Install Python module dependencies:
- Navigate to the folder madlib_with_python by executing the command:
cd FamousPlaces_Country_QuizPP3
- Run the command pip install -r requirements.txt
pip install -r requirements.txt
-
-
Clone the repository:
- Open a folder on your computer with the terminal.
- Run the following command
git clone https://github.com/lazoriks/FamousPlaces_Country_QuizPP3.git
-
Create your own GitHub repository to host the code.
-
Run the command
git remote set-url origin <Your GitHub Repo Path>
to set the remote repository location to your repository. -
Push the files to your repository with the following command:
git push
-
Create a Heroku account if you don't already have one here Heroku.
-
Create a new Heroku application on the following page here New Heroku App:
-
Go to the Deploy tab:
-
Link your GitHub account and connect the application to the repository you created.
-
Go to the Settings tab:
-
Click "Add buildpack":
-
Add the Python and Node.js buildpacks in the following order:
-
Click "Reveal Config Vars."
-
Add 1 new Config Vars:
- Key: PORT Value: 8000
- This Config was provided by CODE INSTITUTE.
-
Go back to the Deploy tab:
-
Click "Deploy Branch":
-
Click "Open app" to launch the application inside a web page.
- Main information from Youtube video for example
- Many info Build a Quiz Application With Python
- Open sites and sources of images and emblems
- Code institute for the deployment process
- Translated with www.DeepL.com/Translator and Grammarly for Windows
- Special thanks to Julia Konovalova for the call and conversation that helped me, after the first unsuccessful attempt, to find the strength in the first place and to understand my shortcomings in the project and complete it.
- Code Institute tutors and Slack community members for their support and help.
Happy coding!