Can you Tic Tac Toe?

Well that was a question that I asked myself. I was inspired by this blogpost: http://neverstopbuilding.com/minimax Without much further ado, Here's the algorithm. (I have strived to explain, what's going at every step in the form of comments) First of all, we need to establish a function,…

Introducing Smoothie

Who knew that drinking a smoothie, could spark a simple idea for a weekend project. :) The idea is pretty simple, a way to allow decorated python functions to callback to a certain handler based on the exception thrown by the wrapped function. A decorator can establish that. Combine that with…