mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2026-01-03 08:37:59 -08:00
MAINT: Apply pre-commit
Remove byte-order-marker pre-commit check as there would be many adjustments necessary
This commit is contained in:
@@ -67,7 +67,7 @@ char printBoard() {
|
||||
Console.Write("\n");
|
||||
}
|
||||
} else {
|
||||
Console.Write("!");
|
||||
Console.Write("!");
|
||||
}
|
||||
}
|
||||
// horizontal check
|
||||
@@ -145,7 +145,7 @@ int computerMove(int lastMove) {
|
||||
return 6;
|
||||
}
|
||||
// check cross
|
||||
int crossIndex = boardMap[getIndex(index + 4)];
|
||||
int crossIndex = boardMap[getIndex(index + 4)];
|
||||
if (board[crossIndex] == ' ') {
|
||||
return crossIndex;
|
||||
}
|
||||
@@ -214,7 +214,7 @@ int computerMove(int lastMove) {
|
||||
if (board[stepBackward3] == ' ') {
|
||||
return stepBackward3;
|
||||
}
|
||||
int crossIndex = boardMap[getIndex(index + 4)];
|
||||
int crossIndex = boardMap[getIndex(index + 4)];
|
||||
if (board[crossIndex] == ' ') {
|
||||
return crossIndex;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user