Test-driven development kata
Python
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
LICENCE Licence; Requirements Oct 6, 2014
README.md
nac.py
requirements.txt

README.md

NoughtsAndCrosses

A test-driven development kata inspired by "Test-driven development as if you mean it" carried out with Mark Withall.

Before we started; we roughly noted down our goals:

  • Moves are provided to [it]
    • checks the move's legal
  • [it] then says if:
    • player that played last move won
    • "board" full (implies draw)

Development Environment Set-up

Get pip and virtualenv

  • easy_install pip
  • pip install virtualenv

Go to the NoughtsAndCrosses directory and create and activate the virtual environment

  • virtualenv venv
  • . venv/bin/activate

Install/update packages

  • pip install -r requirements.txt
  • or pip install --upgrade -r requirements.txt

Running the Tests

The tests can be run continuously with py.test --looponfail nac.py or py.test -f nac.py