first commit

This commit is contained in:
Justine Pelletreau
2023-05-26 17:59:08 +02:00
commit 018918c92a
5 changed files with 255 additions and 0 deletions

69
README.md Normal file
View File

@ -0,0 +1,69 @@
# What ?
A hangman. I was bored and needed to get into Rust again.
# How ?
just cargo run it.
```
IM A BORED SYSADMIN
Try to find the word, he
e
Letter > NO
===> ['e'], LIVES 9
_____
A
Letter > NO
===> ['e', 'a'], LIVES 8
_____
i
Letter > YES
===> ['e', 'a', 'i'], LIVES 8
_i___
u
Letter > NO
===> ['e', 'a', 'i', 'u'], LIVES 7
_i___
o
Letter > YES
===> ['e', 'a', 'i', 'u', 'o'], LIVES 7
_i_o_
p
Letter > NO
===> ['e', 'a', 'i', 'u', 'o', 'p'], LIVES 6
_i_o_
n
Letter > NO
===> ['e', 'a', 'i', 'u', 'o', 'p', 'n'], LIVES 5
_i_o_
s
Letter > YES
===> ['e', 'a', 'i', 'u', 'o', 'p', 'n', 's'], LIVES 5
_i_os
l
Letter > NO
===> ['e', 'a', 'i', 'u', 'o', 'p', 'n', 's', 'l'], LIVES 4
_i_os
t
Letter > NO
===> ['e', 'a', 'i', 'u', 'o', 'p', 'n', 's', 'l', 't'], LIVES 3
_i_os
d
Letter > NO
===> ['e', 'a', 'i', 'u', 'o', 'p', 'n', 's', 'l', 't', 'd'], LIVES 2
_i_os
v
Letter > NO
===> ['e', 'a', 'i', 'u', 'o', 'p', 'n', 's', 'l', 't', 'd', 'v'], LIVES 1
_i_os
b
Letter > NO
===> ['e', 'a', 'i', 'u', 'o', 'p', 'n', 's', 'l', 't', 'd', 'v', 'b'], LIVES 0
_i_os
The word was "giros"
You died, sucker
```