Back to problems

Design Tic-Tac-Toc

Object-Oriented Programming · Amazon · Easy

Design the internal rules engine for a classic game of Tic-Tac-Toe played on a 3×3 board. Two players alternate marking empty squares: one places 'X' and the other places 'O'. The first player to align three of their own marks in a row, column, or either diagonal wins. When every square is populated and no player has three in a line, the result is a draw. The model does not handle rendering, user input, or any visual display. It must own turn management, move legality…

Checking your access…