Skip to content

A JavaScript web application, which allows the user to play Tic Tac Toe in the browser. Created with @sohbaker.

Notifications You must be signed in to change notification settings

ellehallal/js-tic-tac-toe

Repository files navigation

Tic Tac Toe

A JavaScript web application, which allows the user to play Tic Tac Toe in the browser. View Tic Tac Toe on Heroku.

Created with @sohbaker.

Contents

Preview

Tic Tac Toe

Features

  • The player can start a 3x3 game in the browser
  • Two human players take turns playing (X or O) until the board is full or one of them wins
  • The winning player (or a tie) is announced
  • The users can play again

Install

Tic Tac Toe can be viewed on Heroku. Alternatively, it can be run locally:

Note: You can download node and npm from here, if not already installed.

git clone https://github.com/itsellej/js-book-search-app.git
cd js-book-search-app
npm install
npm run build
npm start

Navigate to http://localhost:8080 in your browser.

Testing

The testing library used is Jest.

To run tests:

Type npm run test in the terminal.

Features To Add

  • A human player can play against a simple computer who randomly selects an available space
  • The user can choose to play against an expert computer via an API call to Dan's AWS Lambda https://github.com/pelensky/ttt_network_player
  • Test frontend code

Related Blog Posts

Blog posts published to Medium during the creation of Tic Tac Toe:

About

A JavaScript web application, which allows the user to play Tic Tac Toe in the browser. Created with @sohbaker.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published