#include "piece.h"
#include "square.h"
+// Maximum number of allowed moves per position
+const int MOVES_MAX = 256;
////
//// Types
// Split positives vs non-positives
do {
- while ((++p)->score > 0);
+ while ((++p)->score > 0) {}
if (p != d)
{
- while (--d != p && d->score <= 0);
+ while (--d != p && d->score <= 0) {}
tmp = *p;
*p = *d;
//// Prototypes
////
-extern std::ostream& operator<<(std::ostream &os, Move m);
-extern Move move_from_string(const Position &pos, const std::string &str);
-extern const std::string move_to_string(Move m);
+extern std::ostream& operator<<(std::ostream& os, Move m);
+extern Move move_from_string(const Position& pos, const std::string &str);
+extern const std::string move_to_string(Move m, bool chess960);
extern bool move_is_ok(Move m);