Jeszcze usunięta jakaś stara wersja dictionary.rb.

This commit is contained in:
Michal 2016-12-11 14:40:33 +01:00
parent ea72ee4a56
commit 36a695dff4
1 changed files with 0 additions and 14 deletions

View File

@ -1,14 +0,0 @@
txt = open("keywords.txt")
filenames = ["actions.txt", "directions.txt", "movement.txt"]
dictionary = {}
txt.each_line do |line|
filenames.each do |name|
if File.read(name).include?line
dictionary[name.chomp('.txt')] = line.chomp("\n")
end
end
end
puts dictionary