Picture swap is a small scale puzzle game that is inspired by games like 'Picross' 'Nonogram' and 'paint by colours'. The twist is that instead of painting in each tile, all colours already populate the grid. The objective is to move tiles to form the correct image. The game features a hint feature, allowing the player to select a tile and automatically swap the correct tile into it's position.
Each tile is a UI button which sends a signal to the grid master, notifying that it has been selected. The grid master will then return if the selection was unsuccessful due to any number of issues. If successful the tile will enter a selected state and wait directive from the master to either move to a new space or return to an unselected space
The hint feature works by checking the correct colour of the selected tile. The system then scans the grid for any tiles of corresponding colour through the corresponding colour array. The array is shuffled to ensure the selection is truly at random. Finally, before swapping, the system checks if the tile it has chosen is already in a suitable place for it. It would be unfair to move a tile that is already correct. If the tile is already correct when selected, the action is cancelled
Fonts were used from google fonts