Skip to content

Commit 4bf969a

Browse files
authored
Update check_file.hpp
1 parent 110401d commit 4bf969a

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

check_file.hpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,10 @@ bool Table::checkFile()
2626
if (getTurn() == BLACK)
2727
{
2828
setTurn(WHITE);
29-
setOpponent(BLACK);
3029
}
3130
else
3231
{
3332
setTurn(BLACK);
34-
setOpponent(WHITE);
3533
}
3634
marker();
3735
// in case there is no legal move for the next user the side is switched
@@ -40,12 +38,10 @@ bool Table::checkFile()
4038
if (getTurn() == BLACK)
4139
{
4240
setTurn(WHITE);
43-
setOpponent(BLACK);
4441
}
4542
else
4643
{
4744
setTurn(BLACK);
48-
setOpponent(WHITE);
4945
}
5046
// updating the legal tiles after changing the side
5147
marker();

0 commit comments

Comments
 (0)