Skip to content

goformarty/ttt-angular

Repository files navigation

TIC-TAC-TOE

Live Demo

This is 2-Player Tic Tac Toe game made with Angular4 & Typescript.

Game screenshot

Demo

You can test a fully working live demo at https://goformarty.github.io/ttt-angular/.


Technology:

  • Angular v4.0.0
  • Angular CLI v1.2.1.
  • Typescript v.2.3.3

BDD with:

  • Karma
  • Jasmine

User stories:

Starting a new game

As a player
I want to start a new game,
so that I can see an empty 3x3 grid.  

As a Player “X”
I want to have my turn first, 
so that Player “O” will have second turn.

Making a move

As a player,
I want to place my marker on the board, 
so that I can make my move.

As a player, 
I want to see whose turn it is, 
so that this player can make a move.

As a player, 
I want to see available moves, 
so that I can know where can I make my move.

Game over

As a player, 
I want to be told when the game is over,
so that whether I won or not.

As a player, 
I want to restart game as soon as it’s over, 
so that I can choose to play again.

** As a player, 
I want to see the score board, 
so that I can know how many points I have.

** As a player, 
I want the score board to update automatically after each game, 
so that I know how many points I have.

What can be added:

  • score board;
  • player vs computer

Local setup

Clone this repo and run npm install to install all the dependencies.


Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.


Running unit tests

Run ng test to execute the unit tests via Karma.


About

2-Player Tic Tac Toe game made with Angular4 & Typescript.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published