aboutsummaryrefslogtreecommitdiff
path: root/src/main/game/move.cpp
diff options
context:
space:
mode:
authorCharlie Blake2018-06-28 14:19:31 +0100
committerCharlie Blake2018-06-28 14:19:31 +0100
commitc84d8ccf133bc49c44c185dac7b49a46b8878ec1 (patch)
tree6552511569ab94e28036c03ce5e889630d8df045 /src/main/game/move.cpp
parentAdd kplus unit tests (diff)
downloadmetasol-c84d8ccf133bc49c44c185dac7b49a46b8878ec1.tar.gz
metasol-c84d8ccf133bc49c44c185dac7b49a46b8878ec1.zip

Implement to pass unit tests

Diffstat (limited to 'src/main/game/move.cpp')
-rw-r--r--src/main/game/move.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/game/move.cpp b/src/main/game/move.cpp
index 9e45c66..c51a120 100644
--- a/src/main/game/move.cpp
+++ b/src/main/game/move.cpp
@@ -8,7 +8,7 @@ move::move(mtype ty, pile::ref f, pile::ref t, pile::size_type i, bool reveal_mo
type(ty), from(f), to(t), count(i), reveal_move(reveal_move_) {
#ifndef NDEBUG
if (ty == mtype::regular) assert(i == 1);
- else assert(i >= 1);
+ else if (ty != mtype::stock_to_waste) assert(i >= 1);
#endif
}