IndiaFOSS 2026 · Beginner workshop
Fun and Profit with OCaml
New to OCaml? Start with Part 1. You can edit and run every example in your browser; there is nothing to install.
Start the workshop →Or jump to a part
- 1 OCaml Basics Values, functions, and recursion
- 2 Data Types Variants, pattern matching, and records
- 3 Modules Signatures and abstraction
Final 45-minute game lab
Choose one game. Tic-Tac-Toe is the recommended starting point; Game of Life is the challenge path. Complete the numbered problems first; the stretch problems are optional. Joy is a third, open-ended option: a creative-coding sandbox that the session does not cover, for anyone who would rather draw than build a game.
Open your chosen game during the briefing. Your answers are saved locally in this browser as you type.