summaryrefslogtreecommitdiff
path: root/ai_rand.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ai_rand.cpp')
-rw-r--r--ai_rand.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/ai_rand.cpp b/ai_rand.cpp
index 9bd3eed..8b71670 100644
--- a/ai_rand.cpp
+++ b/ai_rand.cpp
@@ -5,8 +5,9 @@ Move AI::Rand::findMove(const Board &bd, int player) {
Move poss[N * N * N];
int nposs = 0;
- bd.forEachMove(player, [&bd, &poss, &nposs](Move mv) {
+ bd.forEachMove(player, [&poss, &nposs](Move mv) {
poss[nposs++] = mv;
+ return false;
});
if (nposs == 0) return Move(-1, -1);