mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 08:37:44 +00:00
Change the Move enum to a class
This changes the Move enum to a class, this way all move related functions can be moved into the class and be more self contained. closes https://github.com/official-stockfish/Stockfish/pull/4958 No functional change
This commit is contained in:
+3
-5
@@ -37,12 +37,10 @@ enum GenType {
|
||||
LEGAL
|
||||
};
|
||||
|
||||
struct ExtMove {
|
||||
Move move;
|
||||
int value;
|
||||
struct ExtMove: public Move {
|
||||
int value;
|
||||
|
||||
operator Move() const { return move; }
|
||||
void operator=(Move m) { move = m; }
|
||||
void operator=(Move m) { data = m.raw(); }
|
||||
|
||||
// Inhibit unwanted implicit conversions to Move
|
||||
// with an ambiguity that yields to a compile error.
|
||||
|
||||
Reference in New Issue
Block a user