diff options
| author | Charlie Blake | 2018-06-08 10:31:22 +0100 |
|---|---|---|
| committer | Charlie Blake | 2018-06-08 10:31:22 +0100 |
| commit | 819a1064c5142a9b2f04ff8149d34fc915c18322 (patch) | |
| tree | 6d0c8763ad79df10e6e6bcd30a0a974326e54e3a /src/main/game/move.h | |
| parent | Remove reduced state build and logic (diff) | |
| download | metasol-819a1064c5142a9b2f04ff8149d34fc915c18322.tar.gz metasol-819a1064c5142a9b2f04ff8149d34fc915c18322.zip | |
Refactor legal moves gen and moves logic
Diffstat (limited to 'src/main/game/move.h')
| -rw-r--r-- | src/main/game/move.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/main/game/move.h b/src/main/game/move.h new file mode 100644 index 0000000..81a6116 --- /dev/null +++ b/src/main/game/move.h @@ -0,0 +1,20 @@ +// +// Created by thecharlesblake on 07/06/18. +// + +#ifndef SOLVITAIRE_MOVE_H +#define SOLVITAIRE_MOVE_H + +#include "pile.h" + +struct move { + move(pile::ref , pile::ref, pile::size_type = 1); + bool is_dominance() const; + friend bool operator==(const move&, const move&); + + const static pile::size_type dominance_flag; + pile::ref from; pile::ref to; pile::size_type count; +}; + + +#endif //SOLVITAIRE_MOVE_H |
