Game of life implementation in Haxe/NME with a TDD aproach
Haxe
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
assets/images
src/org/games/life
test
.gitignore
.munit
GameOfLife.nmml
README.md
test.hxml

README.md

Game Of Life

TDD example using Game Of Life

  • Write a test
  • Watch the test fail
  • Write just enough code to make it pass or to change the failing message
  • Refactor the code and tests, making sure the tests still pass
  • Go back to step 1

org.games.life.Game is the API consumer and is therefore not tested with unit tests. It should still be tested, but with acceptance tests instead.