Skip to content

Commit

Permalink
[REM] temp test
Browse files Browse the repository at this point in the history
  • Loading branch information
Ricardo Brito committed Jul 5, 2023
1 parent 865415c commit dcfed44
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -557,9 +557,7 @@ function isThereALeftToRightWinner(playerOneMoves, playerTwoMoves) {
function findWinnerDetails(winnerMoves, playerMoves) {
let output = ["", []];
for (let i = 0; i < winnerMoves.length; i++) {
let test = winnerMoves[i];
console.log(test);
current = test.every((x) => playerMoves.map((a) => a[0]).includes(x));
let current = winnerMoves[i].every((x) => playerMoves.map((a) => a[0]).includes(x));
if (current) {
output = [playerMoves[0][1], winnerMoves[i]];
console.log(`player:${playerMoves[0][1]}, coordinates:${winnerMoves[i]}`);
Expand Down

0 comments on commit dcfed44

Please sign in to comment.