12 lines
206 B
Ruby
12 lines
206 B
Ruby
#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
|