added dictionary and dictionary parsing into an array

This commit is contained in:
user 2022-01-21 17:35:19 -05:00
parent 62e889e3bf
commit cfccae02cd
2 changed files with 61417 additions and 0 deletions

61406
5desk.txt Normal file

File diff suppressed because it is too large Load Diff

11
hangman.rb Normal file
View File

@ -0,0 +1,11 @@
#hangman game
#01/21/2022
#load in dictionary file
#select random word between 5 and 12 letters long
a = Array.new
dictionary = File.open('5desk.txt')
dictionary.each do |row|
a.push(row)
puts row
end