Part of my games-in-julia series.
Don't feel bad by what the Hang-Boi says.
___ ___ ___ ___ ___ ___ ___
/__/\ / /\ /__/\ / /\ /__/\ / /\ /__/\
\ \:\ / /::\ \ \:\ / /:/_ | |::\ / /::\ \ \:\
\__\:\ / /:/\:\ \ \:\ / /:/ /\ | |:|:\ / /:/\:\ \ \:\
___ / /::\ / /:/~/::\ _____\__\:\ / /:/_/::\ __|__|:|\:\ / /:/~/::\ _____\__\:\
/__/\ /:/\:\ /__/:/ /:/\:\ /__/::::::::\ /__/:/__\/\:\ /__/::::| \:\ /__/:/ /:/\:\ /__/::::::::\
\ \:\/:/__\/ \ \:\/:/__\/ \ \:\~~\~~\/ \ \:\ /~~/:/ \ \:\~~\__\/ \ \:\/:/__\/ \ \:\~~\~~\/
\ \::/ \ \::/ \ \:\ ~~~ \ \:\ /:/ \ \:\ \ \::/ \ \:\ ~~~
\ \:\ \ \:\ \ \:\ \ \:\/:/ \ \:\ \ \:\ \ \:\
\ \:\ \ \:\ \ \:\ \ \::/ \ \:\ \ \:\ \ \:\
\__\/ \__\/ \__\/ \__\/ \__\/ \__\/ \__\/
He doesn't know that your IQ may lead to his demise.
Player 1, Enter Word (give a difficult one, rek PL2 !) :
madhav
______
Player 2, Guess a letter of this word (single character):
o
+---+
| |
O |
|
|
|
=========
Bro WTH ! Why's there's a noose around mah Neck!?
______
Player 2, Guess a letter of this word (single character):
p
+---+
| |
O |
| |
| |
|
|
=========
Dude Seriously ! What are you doing ????
______
Player 2, Guess a letter of this word (single character):
q
+---+
| |
O |
/| |
| |
|
|
=========
Aww Crap ! You're trying to hang me! right ?
______
Player 2, Guess a letter of this word (single character):
m
Yeet! Correct Letter
m_____
Player 2, Guess a letter of this word (single character):
a
Yeet! Correct Letter
Yeet! Correct Letter
ma__a_
Player 2, Guess a letter of this word (single character):
t
+---+
| |
O |
/|\ |
| |
|
|
=========
Bro You should've given up by now YO! SRSLY...
ma__a_
Player 2, Guess a letter of this word (single character):
v
Yeet! Correct Letter
ma__av
Player 2, Guess a letter of this word (single character):
r
+---+
| |
O |
/|\ |
| |
/ |
|
=========
Ok Ok! Go On! You are of no use.... You'll kill me I'm sure now!
ma__av
Player 2, Guess a letter of this word (single character):
d
Yeet! Correct Letter
mad_av
Player 2, Guess a letter of this word (single character):
h
Yeet! Correct Letter
madhav
Ahh! You saved the Hang Boi! Great Job
Player 2 Wins!
For this task, you will be creating the Hangman game in Julia.
Feel free to use any external packages to spruce things up that you would like (GTK.jl. etc.).
- Create a Julia program that allows two players to play hangman.
- Upload the code to GitHub as a Gist, Notebook, or Repository and link it here.
- Provide screenshots on GitHub of how the game is played.
- Make sure that the hangman game is visual and shows the hangman figure being drawn as the user guesses incorrectly.
Please ping us on here or Slack if there are issues/questions doing this task.