diff --git a/README.md b/README.md index 3bb5501..85fa69d 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,3 @@ # ultimate-tictactoe -My take on web-based multiplayer Ultimate Tic-Tac-Toe. - +My take on web-based multiplayer [Ultimate Tic-Tac-Toe](https://en.wikipedia.org/wiki/Ultimate_tic-tac-toe). \ No newline at end of file diff --git a/src/assets/UltimateTTT.js b/src/assets/UltimateTTT.js new file mode 100644 index 0000000..171c7d8 --- /dev/null +++ b/src/assets/UltimateTTT.js @@ -0,0 +1,14 @@ +export class TTTBoard { + constructor() { + this.stateArray = [ + [null, null, null], + [null, null, null], + [null, null, null] + ]; + } + + // This is a fun exploit of JavaScript's loose Typing, player can be a nested TTTBoard! + play(row, col, player) { + this.stateArray[row][col] = player; + } +} \ No newline at end of file diff --git a/src/index.html b/src/index.html new file mode 100644 index 0000000..f0ade07 --- /dev/null +++ b/src/index.html @@ -0,0 +1,101 @@ + + + + Ultimate Tic-Tac-Toe + + +
+
+
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+
+ + \ No newline at end of file