mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2026-01-16 06:52: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:
@@ -12,10 +12,10 @@ function input()
|
||||
{
|
||||
var input_element;
|
||||
var input_str;
|
||||
|
||||
|
||||
return new Promise(function (resolve) {
|
||||
input_element = document.createElement("INPUT");
|
||||
|
||||
|
||||
print("? ");
|
||||
input_element.setAttribute("type", "text");
|
||||
input_element.setAttribute("length", "50");
|
||||
@@ -199,12 +199,12 @@ async function main()
|
||||
print("ILLEGAL CO-ORDINATES.\n");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Move player's pawn
|
||||
s[m1] = 0;
|
||||
s[m2] = 1;
|
||||
show_board();
|
||||
|
||||
|
||||
// Find computer pawns
|
||||
for (i = 1; i <= 9; i++) {
|
||||
if (s[i] == -1)
|
||||
@@ -313,7 +313,7 @@ async function main()
|
||||
if (s[i - 2] == -1 || s[i - 4] == -1)
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
if (i > 9) {
|
||||
print("YOU CAN'T MOVE, SO ");
|
||||
|
||||
Reference in New Issue
Block a user