Skip to content

G3N7/TicTacToeKata.TypeScript

Repository files navigation

Tic Tac Toe Kata (TypeScript)

Build a working implementation of Tic Tack Toe.

Getting Started

  1. Fork The Repo
  2. Implementing the classes marked with #implementThis (Yours/YourTurnService.ts, Yours/YourGameResultService.ts)
  3. Make sure all the tests pass in YourTests.html
  4. Use your game in YourTicTacToe.html

Working Samples

  • SampleTests.html
  • SampleTicTacToe.html
  • Sample/SampleTurnService
  • Sample/SampleGameResultService

Requirements

  • Display the contents of the board.
  • Display who's turn it currently is.
  • Allows two players to alternate turns placing Xs and Os
  • Declares a winner when three Xs or Os appear in a line across, down or diagonally.
  • Declares a tie when there has not been a winner and there are no spaces left unclaimed.

Bonus (goes to 11)

  • Display information about past matchs.
  • Tests proving your implementation.

Demonstrates

  • TypeScript - A general introduction to this superset of JavaScript, including using Enums, Interfaces, Classes and interacting with other libraries.
  • Testing using Triangulation
  • Dependency Inversion Principle in our controller and tests, allowing us a lot of reuse.

Hardmode

Implement the above requirements from scratch (File > New Project).

About

Build a working implementation of TicTackToe

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •