Skip to content

Tic Tac Toe implementation using TDD and made all tests run on every new pull request using Unity Actions.

License

Notifications You must be signed in to change notification settings

JoanStinson/TicTacToeTDD

Repository files navigation

Tic Tac Toe TDD

Tic Tac Toe implementation using TDD and made all tests run on every new pull request using Unity Actions.

Made With Unity License Last Commit Repo Size Downloads Last Release

Build Unity Code Coverage

📜 Kata Rules

  • A game has nine fields in a 3x3 grid.
  • There are two players in the game (X and O).
  • A player can take a field if not already taken.
  • Players take turns taking fields until the game is over.
  • A game is over when all fields in a row are taken by a player.
  • A game is over when all fields in a column are taken by a player.
  • A game is over when all fields in a diagonal are taken by a player.
  • A game is over when all fields are taken.

🧩 Continuous Integration

I have created a continuous integration workflow via GitHub Actions, more specifically via Unity Actions. On every new pull request or push to main, all edit and playmode tests run as well as building on target platforms and deploying a WebGL build to GitHub pages. In order to merge a pull request to main, the branch must be up to date and all tests and builds must pass.

🔍 Code Analysis

I have used the Unity Code Coverage package to generate reports of both edit and play mode tests. Tests help your project fix and prevent unexpected bugs, making sure all functionality works as intended. Therefore, tests help keep your project healthy, just as eating fruits and vegetables and exercising. The more coverage, the more healthy! 💪