Skip to content

This is an implementation of the TicTacToe game using JavaScript.

Notifications You must be signed in to change notification settings

Tripple-A/JavaScript---TicTacToe

Repository files navigation

JavaScript---TicTacToe

This is an implementation of the TicTacToe game using JavaScript.

Table of Contents

User Features

  • There is a game-board which contains 9 boxes,each player would click on a box of choice in order to append his playing tool(either X or Y).
  • The first player automatically gets the 'X' tool and the 2nd player the 'O' tool.
  • A player wins when his tool is aligned vertically, horizontally or diagonally.
  • A player can start a game afresh after a previous game in which case he and his partner have to re-input their names or restart his previous game in which case,the previous names are on auto-save and will continually be used.
  • When a player wins,the board is still on display but the buttons are disabled and no further move can be made.

Built with

  • Webpack
  • VsCode
  • Windows
  • Love and passion for code ❤️

Concepts Employed

  • Factory functions
  • JavaScript modules
  • Webpack auto watch
  • Jest auto watch

Live Preview

Find the live version here. Below is a screenshot of the game on a mobile screen and a laptop screen. Image

Required Installations

  • Npm
  • Webpack

Installation of This Repository

Clone the Repository

your@pc:~$ git clone git@github.com:Tripple-A/JavaScript---TicTacToe.git

Move to the downloaded folder

your@pc:~$ cd JavaScript---TicTacToe

Install all packages

your@pc:~$ npm install

Start the server

your@pc:~$ npm start

Play the game with a friend.

Run tests

Run all tests

your@pc:~$ npm test

Run specific tests

your@pc:~$ npm test src/index.spec.js

Future Features

  • Make it playable with the computer.
  • Teach the computer to be unbeatable using an algorithm to determine the next line of play.

License

Distributed under the MIT License. See LICENSE for more information.

Authors

Acknowledgements

About

This is an implementation of the TicTacToe game using JavaScript.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •