This is a simple text-based Hangman game created during a Personal Programming Tutorial to teach object-oriented programming
- A session of hangman consists of any number of hangman games (until we quit the application)
- A hangman game can be played with any number of players, which we ask for at the start of the game
- At the start of the game, we pick an arbitrary "leader", before asking to start a new game
- In every hangman session:
- We ask the leader to pick a word/sentence
- We ask every player in turn to either guess a letter, or guess the whole word
- If they get the whole word correctly, they get 10 points, and the leader loses 5, and the next game starts
- If they get a single letter correct, they get 1 point and the according letter positions are revealed
- If they don't make a correct guess, we take 1 life away from the game (lives are shared amongst all non-leaders, in that given game)
- We continue until team runs out of lives, in which case the leader gets 10 points, or someone guesses the word
- We ask if we want to play another game (session)
- If yes, cycle the leader and start again
- We print the leaderboards
- We exit the application
- Akhtar Syed
- Victor-Gabriel Apostol
- Yoram Boccia
- Ossama Chaib
- Justin Chong
- Dhru Devalia
- Pablo Gamito
- Hadrian Lim Wei Heng