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)
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
The tests can be run continuously with py.test --looponfail nac.py
or py.test -f nac.py