Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
hexbog.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a47a1d5
)
log tab: show score for each word blipped
author
Jason Woofenden
<jason@jasonwoof.com>
Thu, 21 Feb 2013 03:27:40 +0000
(22:27 -0500)
committer
Jason Woofenden
<jason@jasonwoof.com>
Thu, 21 Feb 2013 03:27:40 +0000
(22:27 -0500)
main.coffee
patch
|
blob
|
history
diff --git
a/main.coffee
b/main.coffee
index
12fb70d
..
7ea4a02
100644
(file)
--- a/
main.coffee
+++ b/
main.coffee
@@
-344,9
+344,10
@@
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() if cur_tab is 'instructions'