Text-based adventure game in C