Small game (calculated 24 points - c++ implementation)