Remove debug logs
This commit is contained in:
@@ -158,9 +158,6 @@
|
|||||||
i = mHouse[0];
|
i = mHouse[0];
|
||||||
j = mHouse[1];
|
j = mHouse[1];
|
||||||
if (ready && board) {
|
if (ready && board) {
|
||||||
console.log(turn);
|
|
||||||
console.log(color);
|
|
||||||
console.log(selected);
|
|
||||||
if (board[j][i] !== "E" && (board[j][i] === board[j][i].toUpperCase() ? 0 : 1) === color && turn == color) {
|
if (board[j][i] !== "E" && (board[j][i] === board[j][i].toUpperCase() ? 0 : 1) === color && turn == color) {
|
||||||
|
|
||||||
selected = [i, j];
|
selected = [i, j];
|
||||||
@@ -185,7 +182,6 @@
|
|||||||
moves.forEach(move => {
|
moves.forEach(move => {
|
||||||
console.log(move);
|
console.log(move);
|
||||||
if (move[0] == i && move[1] == j) {
|
if (move[0] == i && move[1] == j) {
|
||||||
console.log("YAY");
|
|
||||||
fetch('{{ API_ROOT }}/move/' + ROOM_ID, {
|
fetch('{{ API_ROOT }}/move/' + ROOM_ID, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: {
|
headers: {
|
||||||
|
|||||||
Reference in New Issue
Block a user