Skip to content

mohmmadmoussa1988/tictactoe

Repository files navigation

tictactoe

nestjs tictactoe

First,

I want to announce that i built the whole algorithm without getting to any reference for the game online.

Second, for e2e testing run "npm run test:e2e"

Sample has been added because of the lack of time.

Third, for unit testing run "npm test"

Sample has been added because of the lack of time.

Fourth,

Swagger implemented to API documentation at "http://localhost:3000/api"

Fifth,

Tic Tac Toe.postman_collection.json has been added to be imported to postman for api calls

Sixth,

run "npm run start:dev" for starting the app

Seventh,

If your looking to play with the computer just use the second player name as "Computer" and use "x" character for your self

Eigth,

Database used is mysql and you configure in src/config/typeorm.config.ts

Check below screenshots

  • Create game for 2 human players




  • Create game for human and computer




  • Get game by ID




  • Update game status




  • Playing a Move




  • Computer won the game!


About

nestjs tictactoe

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published