diff --git a/code/connect4-winner.js b/code/connect4-winner.js index 7ce9d27..60a37de 100644 --- a/code/connect4-winner.js +++ b/code/connect4-winner.js @@ -1,12 +1,3 @@ -let testBoard = [ - [ '_', '_', '_', '_', '_', '_', '_' ], - [ '_', '_', '_', '_', '_', '_', '_' ], - [ '_', '_', '_', 'r', 'r', 'r', '' ], - [ '_', '_', '_', 'r', 'r', 'b', 'b' ], - [ '_', '_', 'r', 'b', 'r', '', 'b' ], - [ 'b', 'r', 'b', 'r', 'r', 'b', 'r' ] -] - let checkLine = function (color, board, y, x, length){ if (length === 4){ return true; @@ -73,4 +64,4 @@ let connect4Winner = function (color, board) { } -console.log(connect4Winner('r', testBoard)) \ No newline at end of file +module.exports = { connect4Winner } \ No newline at end of file