4x4 Lights Out
Turn all the lights off
Team Members
1007797 Liew Qi Han
1007828 Chua Wei Yang
1008080 Chan Wei Jie
1008157 Htet Aung Lwin
1008123 Sawit Anna Rica Alop
1008151 Low Zhe Kai, Ronald
1008093 Aung Khant Nyar Moe@William
Description
This project, ‘Lights Out’, is a single-player game that involves a 4x4 matrix of LED-lit buttons, with different stages to play. At the start of the game, some of the buttons will be lit up, while some will remain unlit. Whenever any of the buttons are pressed, the pressed button, as well as the 4 buttons adjacent to the pressed button (up, down, left and right of the pressed button), will toggle the state of the 5 affected lights: if any of the 5 affected lights are lit, they will be toggled to an unlit state; if any of the 5 affected lights are unlit, they will be toggled to a lit state. The game stage is completed once the player has successfully set every light in the matrix to the same unlit state (all 16 lights are unlit). The goal of the player is to complete the stage in as few moves (button presses) as possible, and reducing the number of moves required to clear each stage will result in an improved score.