A simple game "thing", in C