aspittel / tic-tac-toe

Home Page:https://alispit.tel/tic-tac-toe

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tic Tac Toe

Motivation

My motivation for this game was to have a simple game to use when I give talks to beginners! Tic tac toe shows a basic algorithm implementation to make it more efficient. Scores in rows, columns, and diagonals are stored rather than checking each row, column, and diagonal after each move. This makes the efficiency O(N) instead of O(N^2).

Code Style

I stick to standard.js for JavaScript.

Features

This game is pretty simple - it uses just vanilla JS. The algorithm is more efficient than a brute force implementation though!

Stack

  • HTML5
  • CSS
  • JavaScript

Deployment

Game is deployed at https://aspittel.github.io/tic-tac-toe/

Local Installation

$ git clone https://github.com/aspittel/tic-tac-toe/
$ hs

About

https://alispit.tel/tic-tac-toe


Languages

Language:JavaScript 58.9%Language:HTML 23.8%Language:CSS 17.3%