rotate

abstract fun rotate(layout: Layout): Layout

Rotates the given Sudoku layout by a random multiple of 90 degrees.

This method randomly selects one of four possible rotations (0°, 90°, 180°, or 270°) and applies it to the layout.

Return

The rotated Sudoku layout.

Parameters

layout

The Sudoku layout to be rotated.