summaryrefslogtreecommitdiff
path: root/cao-desktop.js
diff options
context:
space:
mode:
authorOlivier Gayot <duskcoder@gmail.com>2015-06-08 22:27:25 +0100
committerOlivier Gayot <duskcoder@gmail.com>2015-06-08 22:27:25 +0100
commit669957dd8cc2dfe697bbbc38d6e695236b3ac4b1 (patch)
tree0cec5c223727852a6af1a7030ce3a3a74a62ba2c /cao-desktop.js
parentb59ef579155f41e5a1f6b8869749eff403b1fcac (diff)
desktop: handle the score
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
Diffstat (limited to 'cao-desktop.js')
-rw-r--r--cao-desktop.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/cao-desktop.js b/cao-desktop.js
index 2517ef6..faa864b 100644
--- a/cao-desktop.js
+++ b/cao-desktop.js
@@ -80,5 +80,9 @@ $(document).ready(function() {
$('#btn_pick_black').show();
};
+ cao.on_updated_score = function(score) {
+ console.log('new score: ' + score);
+ };
+
cao.run();
});