Check Sudoku - Unity Tutorial - 6. Suggestions
In the previous step we implemented game rules . In this one we will add suggestions helping solve the Sudoku: Implementation Let's start from the suggestions in the work cell. We want it to suggestion options visually, i.e. the only possible value in the column will be marked blue ( #1E88E5 ), in the row will be marked red ( #D81B60 ), in the 3x3 square will be marked yellow ( #FFC107 ). We download a free crosshair icon from pixabay.com , which, using GIMP, we turn into three other colors: In the possibility ( PossibilityRect ) we add three images ( OnlyValueColImage , OnlyValueRowImage , OnlyValueGroupImage ) rotated so that a few of them can be displayed at the same time (if e.g. given value is the only one both in the column, and in the row): We add methods activating suggestions to the possibility ( PossibilityRect ): public class PossibilityRect : MonoBehaviour { public GameObject onlyValueColImage; public GameObject onlyValueRowImage; public GameObject onlyValue...