Welcome to the CTGames documentation!¶
If you are viewing these files locally, please note that the latest version is hosted on ctgames.readthedocs.io.
Please read the overview section and the other sections in the introduction chapter if you are new to CTGames.
The tables of contents below and the sidebar on the left should let you easily access the documentation for your topic of interest. You can also use the search function in the top left corner.
The documentation is organised into chapters. Chapter “Introduction” explains what the project is, its overview and motivation, the technologies used, and the installation options. Chapter “Game development” gives general information for developers wishing to create games using the framework. Chapter “Template game explained” explains how to get started programming a new command-line game with the CTGames framework. Chapter “Command-line games” documents the programming interface for the CTGames framework with respect to command-line games. Chapter “Web app games” provides guidelines for how to turn a CTGames command-line game into a web app. Chapter “Animations for web app games” explains how to conveniently introduce basic 2D animation of SVG images into CTGames web app games. Chapter “CTGames framework” gives an overview of the framework and how games are executed within the framework. Chapter “Teacher portal development” introduces the web app and back-end functionality that teachers use. Finally, chapter “Game improvements” catalogues work to be done on each of the games.
Introduction
Game development
Template game explained
Command-line games
- 1. Introduction to command-line games
- 2. Guidelines for command-line game development
- 3. The function
create_game_round() - 4. The function
process_input_and_solve_task() - 5. Advanced functionality supported in
logic.py - 6. Advanced functionality supported in
cl.py - 7. Checklist for command-line game completion
Web app games
Animations for web app games
CTGames framework
Teacher portal development
Game improvements
Student projects