Remove redundant argument in think()

We don't need to pass side_to_move because we can get
it directly from the position object.

Note that in benchmark we always used to pass '0' and
it was a bug, but with no effect because was used only
in time[] and increment[], set always to 0 for both
colors.

Also additional small cleanup while there.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba
2010-07-15 17:05:56 +02:00
parent a98dee7835
commit b6ab610e2f
7 changed files with 22 additions and 26 deletions

View File

@@ -201,8 +201,8 @@ inline Move make_ep_move(Square from, Square to) {
//// Prototypes
////
extern std::ostream& operator<<(std::ostream &os, Move m);
extern Move move_from_string(const Position &pos, const std::string &str);
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 bool move_is_ok(Move m);