From 669957dd8cc2dfe697bbbc38d6e695236b3ac4b1 Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Mon, 8 Jun 2015 22:27:25 +0100 Subject: desktop: handle the score Signed-off-by: Olivier Gayot --- cao-desktop.js | 4 ++++ 1 file changed, 4 insertions(+) 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(); }); -- cgit v1.2.3