Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 1.01 KB

File metadata and controls

32 lines (23 loc) · 1.01 KB

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