Exercise: Write a Tic-Tac-Toe game
A possible solution is at the end of this page.
This is your first assignment, to exercise what you just learned. In order to complete this task, use the documentation to read about verbs, functions, etc., and get familiar with UI programming in BBj.
Write a two-placer Tic-Tac-Toe game in BBj. Create a board layout that can take user input with mouse clicks, shows the player who is up for the next move. Your game should check with every move if one of the players won.
If you don't know Tic Tac Toe yet: https://en.wikipedia.org/wiki/Tic-tac-toe
Possible solution
The original course had no solution for this exercise, so this one was written for this book. It uses only plain BBj controls, button callbacks and process_events, without CSS, and it also runs in the DWC. The solution is in TicTacToe.bbj, and you find all files in the exercises.zip link.