"Nine Lives" is a classic word-guessing game that puts players' vocabulary and deduction skills to the test. Much like its counterpart, Hangman, players attempt to guess a hidden word by suggesting letters one at a time. However, in "Nine Lives," the stakes are higher as players are granted a limited number of incorrect guesses, represented by the titular nine lives. With each incorrect guess, a life is lost, bringing them one step closer to failure. The challenge lies in strategically selecting letters to unveil the mystery word before all nine lives are depleted. "Nine Lives" offers a thrilling and engaging experience, combining elements of wordplay and suspense to keep players on the edge of their seats until the very end.
See Gameplay in TESTING.md for some of the current features.
- Python was the core language used.
- Python Library:
- join method was used to turn an iterable into a string.
- random.choices was used to randomly choose a word from a list.
- set class was used to ensure a selection of unique words.
- string was used to concatenate input letters.
- ChatGPT
- GitHub was used to create & store my repository.
- Gitpod was used as my IDE workspace.
- Heroku was used to deploy the application.
- Replit was used to experiment with variations of code.
The site was deployed using Heroku. The is how the live site was deployed:
- Log in (or sign up) to Heroku.
- Go to the user dashboard & click "Create new app". Keep in mind that each app name on Heroku has to be unique.
- Select the region & click "Create app".
- Go to the settings tab & scroll to the "Config vars" section.
- Click "Reveal Config Vars".
- Create a Config Var, set the key field to "PORT" & the value key to "8000".
- If you have credentials, insert "CREDS" for the key field. Copy & paste the entire JSON file to the value field.
- Scroll to the "Buildpacks" section.
- Click "Add buildpacks". Select "Python" and "nodejs", and in that order.
- Go to the “Deploy” tab.
- Scroll to the “Deployment Method” section.
- Click on “Connect to Github”. Search for the repository name & click "Connect".
- Scroll to the "Manual Deploys" section.
- Click "Deploy Branch". A message will show up to say "Your app was usccessfully deployed. The "View" button will take you to your deployed link.
To fork the Nine Lives repository:
- Log in (or sign up) to Github.
- Go to the repository for this project, Kate McGuane / nine-lives.
- Click the Fork button in the top right corner. This action will create a copy of the repository under your GitHub account.
To clone the Nine Lives repository:
- Log in (or sign up) to GitHub.
- Go to the repository for this project, Kate McGuane / nine-lives.
- Click on the code button, select whether you would like to clone with HTTPS, SSH or GitHub CLI and copy the link shown.
- Open the terminal in your code editor and change the current working directory to the location you want to use for the cloned directory.
- Type 'git clone' into the terminal and then paste the link you copied in step 3. Press enter.
Please see TESTING.md for a comprehensive list of tests performed.
The markup outline for this project was taken from the following README files:
- The terminal function & template for the deployable application was created by Code Instutute for their Python Essentials Template.
- The introduction for the README file was generated by Chat GPT.
- 12 Beginner Python Projects - Coding Course established the main logic for this project. I adapted the code to suit the needs of this project.
- Hangman the code was adapted from this source. The words.py file was copied & pasted directly.
- 12 Beginner Python Projects - Coding Course by freeCodeCamp.org was used as an educational aid, assited in laying out the logic, and coding process.
- Thank you to my mentor, cohort leader & CI team for your support and understanding during this project.
- To Sarah, thank you for all the 1:1 zoom calls.
- To Mikhail, thank you for your continued support.