From 7b4f42242d277adeaec7a40eaac7d178141d4621 Mon Sep 17 00:00:00 2001 From: Tom Harley Date: Tue, 29 Jan 2019 19:12:22 +0000 Subject: Reorganise submodules (and submodulise solvitaire) The submodules should now point to repos I've made in order to produce static libraries from them. Also, solvitaire now points to a similar personal repo. --- solvitaire | 1 + solvitaire/src/main/game/move.cpp | 25 ------------------------- 2 files changed, 1 insertion(+), 25 deletions(-) create mode 160000 solvitaire delete mode 100644 solvitaire/src/main/game/move.cpp (limited to 'solvitaire/src/main/game/move.cpp') diff --git a/solvitaire b/solvitaire new file mode 160000 index 0000000..b835e10 --- /dev/null +++ b/solvitaire @@ -0,0 +1 @@ +Subproject commit b835e10bfb21a73b4f89e09ddeb400f415384835 diff --git a/solvitaire/src/main/game/move.cpp b/solvitaire/src/main/game/move.cpp deleted file mode 100644 index b349ddd..0000000 --- a/solvitaire/src/main/game/move.cpp +++ /dev/null @@ -1,25 +0,0 @@ -// -// Created by thecharlesblake on 07/06/18. -// - -#include "move.h" - -move::move(mtype ty, pile::ref f, pile::ref t, int8_t count_, bool reveal_move_, bool flip_waste_) : - type(ty), from(f), to(t), count(count_), reveal_move(reveal_move_), flip_waste(flip_waste_) { -#ifndef NDEBUG - if (ty == mtype::regular) assert(count == 1); - if (ty == mtype::stock_k_plus) assert(!reveal_move_); -#endif -} - -void move::make_reveal_move() { - reveal_move = true; -} - -bool operator==(const move& a, const move& b) { - return (a.from == b.from ) - && (a.to == b.to ) - && (a.count == b.count) - && (a.type == b.type ) - && (a.reveal_move == b.reveal_move); -} -- cgit v1.2.1