How to Add a REST API to an Existing Django Project

This is a note I wrote to myself about how to add Django REST Framework to an existing project. It’s in PDF format, for reading. I didn’t have the time to create a real tutorial that builds up the API, or produce a really useful API. The intention is just to outline what parts get defined and how they work together.

http://riceball.com/d/files/django%20rest%20api%20-%20adding%20to%20existing%20project_0.odt

http://riceball.com/d/files/django%20rest%20api%20-%20adding%20to%20existing%20project_0.pdf

Rewriting and Refactoring Hamurabi.bas Part 3.5 Game Logic and Random Testing

Testing the central function of Hamurabi, the game logic that carries out the plan for next year, and adds some random catastrophes, was coded up. This had me a bit confused.

Continue reading Rewriting and Refactoring Hamurabi.bas Part 3.5 Game Logic and Random Testing