summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Smeding <tom.smeding@gmail.com>2018-07-01 22:01:41 +0200
committerTom Smeding <tom.smeding@gmail.com>2018-07-01 22:02:01 +0200
commitd181aa1597ee875560ad52848b6092b59c48778d (patch)
tree2451c3ab7b12f2c280d994e76fbcda32727df99e
parent65ede200c73ebaa450efc859de99fbc7aa80ed7a (diff)
interactor: fix some interface bugs
-rw-r--r--interactor/game.js4
-rw-r--r--main.cpp2
2 files changed, 4 insertions, 2 deletions
diff --git a/interactor/game.js b/interactor/game.js
index bf2b97f..a9ecf2e 100644
--- a/interactor/game.js
+++ b/interactor/game.js
@@ -143,7 +143,7 @@ function addMoveLog(player, mv, captures) {
log.appendChild(tr);
- tr.scrollIntoView(false);
+ document.getElementById("movelog_container").scrollTop = 99999999;
}
function addServerLog(msg) {
@@ -201,6 +201,8 @@ function humanMove(mv) {
return;
}
+ document.getElementById("aifirst").classList.add("invisible");
+
if (aiplayer == null) {
aiplayer = -onturn;
}
diff --git a/main.cpp b/main.cpp
index 793aa8a..0e16ec4 100644
--- a/main.cpp
+++ b/main.cpp
@@ -58,7 +58,7 @@ int main() {
onturn = -onturn;
if (win != 0) break;
- cerr << bd << endl;
+ cerr << endl << bd << endl;
mv = AI::MM::findMove(bd, onturn);
assert(bd.isValid(mv, onturn));