Exercises
Use this page to find all exercises of the course. Bonus exercises build on the exercise before them. Every exercise page ends with a possible solution, written for this book.
Set up your environment and get started
- Exercise: Write a Tic-Tac-Toe game - Write a two-player game that takes mouse input and checks for a winner. (solution included)
- Bonus exercise: Add a computer player - Turn your game into a one-player game where the computer plays the other side. (solution included)
Object-oriented syntax in BBj
- Exercise: Build a login dialog - Write a login dialog as a BBj class that checks a user name and password pair. (solution included)
- Bonus exercise: Make your Tic-Tac-Toe object-oriented - Refactor your game into an object-oriented design and decide how many classes you need. (solution included)
Web development with BBj's DWC
- Exercise: Make your login dialog responsive - Use CSS so that your login dialog works on phones, tablets and desktops. (solution included)