Game of hog, implemented in Python