JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
delete obsolete notes file
[hexbog.git] / main.coffee
index a4bd416..ca34b4e 100644 (file)
@@ -344,11 +344,13 @@ activate_selection = ->
        unless is_word word
                log "Not on word list: \"#{word}\""
                return
-       score += Math.round(Math.pow(1.7, word.length))
+       word_score = Math.round(Math.pow(1.7, word.length))
+       score += word_score
        $score_display.html score
-       log "blipped: #{word}"
+       log "blipped \"#{word}\" for #{word_score} points"
        blip_selection()
        look_up_definition word
+       $('#definition').click()
 
 
 show_definition = (word, type, definition, language) ->