Skip to content

Dinssa/tic-tac-toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub GitHub release (latest by date) Website

Tic Tac Toe

Tic Tac Toe is a game that challenges your logic and strategy skills. The game is played on a 3x3 grid, where you and your opponent take turns placing Xs and Os. The goal is to get three of your symbols in a row, either horizontally, vertically, or diagonally, before your opponent does.

This Repository

This Tic Tac Toe repository is my execution of building a simple browser game written in HTML, CSS & JavaScript. It uses a simple grid layout and event listeners to handle the user interactions. The game logic is implemented with a one-dimensional array and a function that checks for winning combinations based on a constant array of winning combos.

Live Preview

Mockups on Laptop and Mobile

Check out this game on Github Pages
dinssa.github.io/tic-tac-toe

Installation

  • Clone the repo: git clone https://github.com/Dinssa/tic-tac-toe.git
  • Open index.html in your favorite browser