|
@@ -37,6 +37,7 @@ struct chessy::MoveInfo
|
|
|
|
|
|
struct chessy::UndoInfo
|
|
|
{
|
|
|
+ Board before;
|
|
|
};
|
|
|
|
|
|
|
|
@@ -88,8 +89,7 @@ public:
|
|
|
inline Index getEnPassantIndex(void) const { return enPassant; }
|
|
|
|
|
|
UndoInfo doMove(const MoveInfo& mi);
|
|
|
- void undoMove(const UndoInfo ui);
|
|
|
+ void undoMove(const UndoInfo& ui);
|
|
|
};
|
|
|
|
|
|
#endif // CHESSY_CHESSGAME_H
|
|
|
-
|