/wacky-TicTacToe

wacky TicTacToe for how ever you want to play

Primary LanguageJavaScript

wacky TicTacToe

A tic tac toe board for wacky sizes and the ability for as many players as you want! The game detects winners in all directions (horizontally, vertically, and diagonally). The game has no ui, instead, it uses the javascript console.

usage

include the js file in your project then

let players = ["bob", "frank", "alice", "june"];
let symbols = ["Bo", "F", "Al", "Jne"];
let lengthToWin = 3;
let numOfCols = 5;
let numOfRows = 4;

tic_tac_toe = new ticTacToe(numOfCols, numOfRows, lengthToWin, symbols, players);
tic_tac_toe.play();