Permalink
Browse files

Fixed in code documentation

  • Loading branch information...
1 parent acf27a9 commit fd8c70b38e644cc2beab888b31d05845b4162f34 @lnmaurer committed Dec 4, 2011
Showing with 2 additions and 4 deletions.
  1. +2 −4 hacker.rb
View
@@ -24,8 +24,6 @@
#You can also receive a paper copy by writing the Free Software
#Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-#TODO: ADD UNDO ABILITY
-
require 'tk'
require 'tkextlib/tile'
begin #check to see if zlib is installed
@@ -40,15 +38,15 @@ def lettersInCommon(word1, word2)
word1.split(//).zip(word2.split(//)).inject(0){|sum,c| sum + (c[0] == c[1] ? 1 : 0)}
end
-#for error where a word of the wrong lenght is entered
+#for when a word of the wrong length is entered
class WordLenghtError < ArgumentError
end
#for when a word not on the wordlist is entered
class SpellingError < ArgumentError
end
-#for when a word
+#for when the number of correct letters for a word is impossible because it eliminates all remaining words
class NumberCorrectError < ArgumentError
end

0 comments on commit fd8c70b

Please sign in to comment.