Skip to content

ihortkachuk/tic-tac-toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Tic Tac Toe game

Tic-tac-toe is a paper-and-pencil game for two players, X and O, who take turns marking the spaces in a 3×3 grid. The player who succeeds in placing three of their marks in a horizontal, vertical, or diagonal row wins the game. The right of the first move is determined in a random manner.

Install

  1. Clone this repo.
  2. Install npm dependency npm install
  3. Compile typescript to plain JS webpack

Or check: DEMO

Game control

###Player 1 Use the following keys to select the cell W - up, S - down, A - left, D - right, Z - make a choose.

###Player 2 Use the arrow keys to select the cell - up, - down, - left, - right, 9 - make a choose.

About

Simple Tic Tac Toe game in Typescript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published