diff --git a/src/FastState.cpp b/src/FastState.cpp
index f356274a5..1fb0a15e6 100644
--- a/src/FastState.cpp
+++ b/src/FastState.cpp
@@ -1,19 +1,19 @@
/*
-This file is part of Leela Zero.
-Copyright (C) 2017-2018 Gian-Carlo Pascutto and contributors
+ This file is part of Leela Zero.
+ Copyright (C) 2017-2018 Gian-Carlo Pascutto and contributors
-Leela Zero is free software: you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation, either version 3 of the License, or
-(at your option) any later version.
+ Leela Zero is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
-Leela Zero is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
+ Leela Zero is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
-You should have received a copy of the GNU General Public License
-along with Leela Zero. If not, see .
+ You should have received a copy of the GNU General Public License
+ along with Leela Zero. If not, see .
*/
#include "config.h"
@@ -64,10 +64,10 @@ void FastState::reset_board(void) {
bool FastState::is_move_legal(int color, int vertex) {
return vertex == FastBoard::PASS ||
- vertex == FastBoard::RESIGN ||
- (vertex != m_komove &&
- board.get_square(vertex) == FastBoard::EMPTY &&
- !board.is_suicide(vertex, color));
+ vertex == FastBoard::RESIGN ||
+ (vertex != m_komove &&
+ board.get_square(vertex) == FastBoard::EMPTY &&
+ !board.is_suicide(vertex, color));
}
void FastState::play_move(int vertex) {
@@ -79,8 +79,7 @@ void FastState::play_move(int color, int vertex) {
if (vertex == FastBoard::PASS) {
// No Ko move
m_komove = FastBoard::NO_VERTEX;
- }
- else {
+ } else {
m_komove = board.update_board(color, vertex);
}
board.m_hash ^= Zobrist::zobrist_ko[m_komove];
@@ -96,8 +95,7 @@ void FastState::play_move(int color, int vertex) {
board.m_hash ^= Zobrist::zobrist_pass[get_passes()];
if (vertex == FastBoard::PASS) {
increment_passes();
- }
- else {
+ } else {
set_passes(0);
}
board.m_hash ^= Zobrist::zobrist_pass[get_passes()];
@@ -135,15 +133,14 @@ void FastState::set_to_move(int tom) {
void FastState::display_state() {
myprintf("\nPasses: %d Black (X) Prisoners: %d\n",
- m_passes, board.get_prisoners(FastBoard::BLACK));
+ m_passes, board.get_prisoners(FastBoard::BLACK));
if (board.black_to_move()) {
myprintf("Black (X) to move");
- }
- else {
+ } else {
myprintf("White (O) to move");
}
myprintf(" White (O) Prisoners: %d\n",
- board.get_prisoners(FastBoard::WHITE));
+ board.get_prisoners(FastBoard::WHITE));
board.display_board(get_last_move());
}
diff --git a/src/FastState.h b/src/FastState.h
index e2bc10c85..a3e95726f 100644
--- a/src/FastState.h
+++ b/src/FastState.h
@@ -1,19 +1,19 @@
/*
-This file is part of Leela Zero.
-Copyright (C) 2017-2018 Gian-Carlo Pascutto and contributors
+ This file is part of Leela Zero.
+ Copyright (C) 2017-2018 Gian-Carlo Pascutto and contributors
-Leela Zero is free software: you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation, either version 3 of the License, or
-(at your option) any later version.
+ Leela Zero is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
-Leela Zero is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
+ Leela Zero is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
-You should have received a copy of the GNU General Public License
-along with Leela Zero. If not, see .
+ You should have received a copy of the GNU General Public License
+ along with Leela Zero. If not, see .
*/
#ifndef FASTSTATE_H_INCLUDED