Skip to content

This is a fully fledged 2 or 1 player tic-tac-toe game written in JavaScript, HTML and CSS.

License

Notifications You must be signed in to change notification settings

VarunS2002/JavaScript-Tic-Tac-Toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

JavaScript Tic-Tac-Toe

This is a fully fledged 2 or 1 player tic-tac-toe game written in JavaScript, HTML and CSS

Usage:

-Directly run the program

Features:

-2 modes namely Player vs Computer and Player vs Player

-Default mode is Player vs Computer

-Toggle to change the mode

-Input X and O alternatively by clicking on the buttons in the grid

-In PvP mode input X and O alternatively by clicking on the buttons in the grid

-In PvC mode user always inputs X and the computer inputs O

-First to start is always X

-Shows you who won or if it's a draw

-Different result messages based on the mode

-Restart Game Option

-Bottom Navbar with version, link for releases and for sources

-Comments to easily understand code