This document contains source code for a 3D tic-tac-toe game written in Ring and using the Allegro and OpenGL libraries. The code defines classes for game logic, a game interface, game cubes, background, sound, and end screens. Methods handle loading resources, drawing scenes, mouse clicks, checking for game over conditions, and refreshing the game state. Cubes are rendered with textures for X, O or empty based on the game board state.