From: Jason Woofenden Date: Tue, 26 Nov 2013 22:55:03 +0000 (-0500) Subject: add comments about controll flow X-Git-Url: https://jasonwoof.com/gitweb/?p=hexbog.git;a=commitdiff_plain;h=fcffbb0075df91b4b460e184a6324a26b367762b;ds=sidebyside add comments about controll flow --- diff --git a/main.coffee b/main.coffee index c0524a0..be83ff2 100644 --- a/main.coffee +++ b/main.coffee @@ -599,10 +599,12 @@ score_for = (word) -> Math.round(Math.pow(1.7, word.length)) activate_selection = -> word = selected_word() if word.length < 3 + # should only happen when trying to blip a word with the keyboard # FIXME make this a hint log "Too short: \"#{word}\"" return unless is_word word + # should only happen when trying to blip a word with the keyboard # FIXME make this automatically part of the selection display log "Not on word list: \"#{word}\"" return