aboutsummaryrefslogtreecommitdiff
path: root/solvitaire/src/main/game/move.h
diff options
context:
space:
mode:
authorTom Harley2019-01-29 19:12:22 +0000
committerTom Harley2019-01-29 19:12:22 +0000
commit7b4f42242d277adeaec7a40eaac7d178141d4621 (patch)
treeeacece268545df914d730ad80d6a1b69f1448296 /solvitaire/src/main/game/move.h
parentAdd support for reading gamestates from json files (diff)
downloadmetasol-7b4f42242d277adeaec7a40eaac7d178141d4621.tar.gz
metasol-7b4f42242d277adeaec7a40eaac7d178141d4621.zip

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.

Diffstat (limited to 'solvitaire/src/main/game/move.h')
m---------solvitaire0
-rw-r--r--solvitaire/src/main/game/move.h28
2 files changed, 0 insertions, 28 deletions
diff --git a/solvitaire b/solvitaire
new file mode 160000
+Subproject b835e10bfb21a73b4f89e09ddeb400f41538483
diff --git a/solvitaire/src/main/game/move.h b/solvitaire/src/main/game/move.h
deleted file mode 100644
index 8250609..0000000
--- a/solvitaire/src/main/game/move.h
+++ /dev/null
@@ -1,28 +0,0 @@
-//
-// Created by thecharlesblake on 07/06/18.
-//
-
-#ifndef SOLVITAIRE_MOVE_H
-#define SOLVITAIRE_MOVE_H
-
-#include "pile.h"
-
-struct move {
- enum class mtype : uint8_t {regular, dominance, built_group, stock_k_plus, stock_to_all_tableau, sequence, accordion, null};
-
- explicit move(mtype, pile::ref = 255 , pile::ref = 255, int8_t = 1, bool reveal_move_ = false, bool flip_waste_ = false);
- friend bool operator==(const move&, const move&);
-
- void make_reveal_move();
-
- mtype type;
- pile::ref from;
- pile::ref to;
- // For built piles the size of the pile, or for stock k-plus moves,
- // the number of cards to be moved from the stock to the waste before the waste card is played on the foundations
- int8_t count;
- bool reveal_move;
- bool flip_waste;
-};
-
-#endif //SOLVITAIRE_MOVE_H