lights_out
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
lights_out [2019/03/28 10:33] – frchris | lights_out [2023/11/30 09:21] (current) – frchris | ||
---|---|---|---|
Line 1: | Line 1: | ||
**Lights Out** | **Lights Out** | ||
+ | {{https:// | ||
+ | {{https:// | ||
+ | {{https:// | ||
+ | {{https:// | ||
+ | |||
+ | [[https:// | ||
{{https:// | {{https:// | ||
+ | |||
+ | |||
+ | {{ :: | ||
**What to do** | **What to do** | ||
- | - Right now the code works so that a single clicked square is turned on or off as you click it. In the actual game, when you click on a light, it changes not only the light you clicked on, but also the one above, below and the one on the right and the left. You need to modify the @@Puzzle@@ method | + | - Right now the code works so that a single clicked square is turned on or off as you click it. In the actual game, when you click on a light, it changes not only the light you clicked on, but also the one above, below and the one on the right and the left. You need to modify the '' |
- | - Once you have that working, change the constructor of the @@Puzzle@@ so it randomly chooses to turn on several lights. | + | - Once you have that working, change the constructor of the '' |
- | - Notice it always says 0 moves. Look at the code in LightsOutApp to see how to get that working. | + | - Notice it always says 0 moves. Look at the code in '' |
- | - Change the dimensions of the puzzle. | + | - Change the dimensions of the puzzle. |
- There is a version where there are no borders, so when you click on one of the lights on the edge, it changes the lights on the other side (Hint: use mod % ) | - There is a version where there are no borders, so when you click on one of the lights on the edge, it changes the lights on the other side (Hint: use mod % ) | ||
- | - not all random situations form a solvable puzzle. | + | - Not all random |
- Optional: Let the player know the minimum number of moves | - Optional: Let the player know the minimum number of moves |
lights_out.1553783631.txt.gz · Last modified: 2019/03/28 10:33 by frchris