diff options
author | Sébastien Dailly <sebastien@chimrod.com> | 2014-09-14 12:23:55 +0200 |
---|---|---|
committer | Sébastien Dailly <sebastien@chimrod.com> | 2014-09-14 12:23:55 +0200 |
commit | aceb0d301274962289d62a41421e3cf0c8738053 (patch) | |
tree | 86e7594f568de60118a4c549d3b1e52b5725bac2 /qml/pages | |
parent | 57ddb2dfff768d323f2dae0af56fc086a66b0044 (diff) |
Extract initial player from goban
Diffstat (limited to 'qml/pages')
-rw-r--r-- | qml/pages/Goban.qml | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/qml/pages/Goban.qml b/qml/pages/Goban.qml index 5c86700..c1e81bd 100644 --- a/qml/pages/Goban.qml +++ b/qml/pages/Goban.qml @@ -36,7 +36,7 @@ Item { */ function start() { - currentPlayer = true; + //currentPlayer = true; for (var i = 0; i < goban.rows * goban.columns; i++) { repeater.itemAt(i).remove(false); @@ -88,6 +88,9 @@ Item { caseSize = maxWidth; } + console.log("Current player:", ret.current_player); + currentPlayer = (ret.current_player === 'W'); + /* * Put the initials stones */ |