From c84d8ccf133bc49c44c185dac7b49a46b8878ec1 Mon Sep 17 00:00:00 2001 From: Charlie Blake Date: Thu, 28 Jun 2018 14:19:31 +0100 Subject: Implement to pass unit tests --- src/main/game/move.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/game/move.cpp') 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 } -- cgit v1.2.1 From 5fde1f9563c98e2d661ac495e448d35eeb97e68c Mon Sep 17 00:00:00 2001 From: Charlie Blake Date: Fri, 29 Jun 2018 11:34:09 +0100 Subject: Fix bugs + correct built pile kings. Cell + founds --- src/main/game/move.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/game/move.cpp') diff --git a/src/main/game/move.cpp b/src/main/game/move.cpp index c51a120..915bac6 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 if (ty != mtype::stock_to_waste) assert(i >= 1); + else if (ty != mtype::stock_k_plus) assert(i >= 1); #endif } -- cgit v1.2.1