The Caffeine Framework is a message routing system designed to support a wide variety of games. The framework is cross-platform and supports modulized games and AIs. The purpose of the framework is to facilitate the learning and understanding of AI programming.