- Description
- Installation Instructions
- Usage Instructions
- Project File Structure
- License Information
Hangman is a classic game in which a player thinks of a word and the other player tries to guess that word within a certain amount of attempts.
This is an implementation of the Hangman game, where the computer thinks of a fruit and the user tries to guess it.
Learning achieved through this project includes:
- Experience with Python:
- functions
- if/else statements
- while loops
- user inputs
- class definitions
- class attributes
- README creation and editing
- Experience with git & GitHub:
- Cloning an online repository
- Making local changes
- Committing and pushing changes back to the cloud repository
- Storing a PAT
Download the hangman directory and run milestone_5.py file in the command line to start the game. No installation required.
The code includes a list of fruits from which one is randomly chosen.
It will prompt the user to make a guess and then inform the user whether or not their guess is in the word.
- Project Directory
- README.md
- milestone_2.py
- milestone_3.py
- milestone_4.py
- milestone_5.py
hangman: a simple python implementation of the classic hangman game Copyright (C) 2023 Daniel Killen
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.