Hands-on practice for this lecture. Work through the exercises and quizzes to reinforce what you've learned.
Exercise 1 of 1
Create a `InvalidMoveException` and use it in the `makeMove` logic.
Create a InvalidMoveException and use it in the makeMove logic.
Multiple choice — select an answer to see the explanation.
When reversing turns in Undo, why is (index - 1 + size) % size used?
Practical exercises to master the concepts.
Create a InvalidMoveException and use it in the makeMove logic.