LightsOut

Program Info

LITEON.PNG
(FROM 5x5 version)

Description

A game that requires strategy.

Extra Programs

This game needs an extra program, LOCHANGE.8xp, which is included with every download. LOCHANGE.8xp is the same in each download, so updates to LOCHANGE.8xp will be provided in its own file.

Downloads

Lights Out

Table Of Contents

Program Details

The first thing you need to note is that all versions have the exact same program names. This is because LITEOUT5 is considered an upgrade to LITEOUT3. LITEOUT3 is a stupendously easy version, while LITEOUT5 provides the more common 5x5 grid layout, which is monumentally harder than LITEOUT3.

Program Code

At this moment in time, only the code for LOCHANGE.8xp is released because of the varying versions of the main program.

:If [A](P,Q)=0:Then
:1->[A](P,Q)
:Else
:0->[A](P,Q)
:End
:Return

Controls

In the 5x5 grid version, GRAPH is reset and MODE is quit in the middle of a game. The 3x3 grid version does not yet have these special keys.
On the 3x3 grid version, the numbers 1-9 are used for the playing field.
On the 5x5 grid version, the buttons MATH through - (subtraction) are used to play. The 5x5 playing field is shown here:

INACTIVE RESET
INACTIVE EXIT INACTIVE
INACTIVE
PLAYING FIELD ROW 1
PLAYING FIELD ROW 2
PLAYING FIELD ROW 3
PLAYING FIELD ROW 4
PLAYING FIELD ROW 5
BREAK INACTIVE

Special Information for the 5x5 grid version with the ability to addon levels.

The controls for the first 5x5 grid version is the same in this version
This is considered an upgrade to the old 5x5 grid version. This 5x5 grid version supports the addition of levels.
To use a level set, replace the _theta_RNDPRGM with the name of the program that manages the level set:

:0->G:5->H
:Lbl M
:While G<H
:ClrHome
:G+1->G
:prgm_theta_RNDPRGM

NOTE: If you are asked to change the number stored in the H variable, replace the 5 in 5->H with the number asked by the creator of the level set.
_theta_RNDPRGM is the default module. It is provided for those who liked the challenge of a random level provided by the original 5x5 grid version. This module is made so that H does not have to be modified; the module will go in a never-ending loop like in the original 5x5 grid version.
_theta_EASYSET is meant as a sort of "training pack". The H variable should have the number 5 stored in it.
Developers:

look at _theta_EASYSET for an idea of how to program level sets.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License