lightsout

command
v0.0.0-...-a369a26 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 23, 2016 License: MIT Imports: 11 Imported by: 0

README

Lightsout

A simple Lightsout game using the shiny gui package (golang.org/x/exp/shiny).

Loosely ported from TI-68K C source found here: http://www.ticalc.org/archives/files/fileinfo/318/31860.html

This is a WIP.

Includes 50 levels. The command line flag 'level' may be used to begin at a level other than 1.

How to play

Each level begins with a different configuration of lights 'on' (white). The goal is to turn all lights 'off' (black).

Clicking any light on the board will toggle its state, and its vertical and horizontal neighbor's states.

Toggle gif

A level is completed when all lights are turned off, and the game will advance to the next level.

Next gif

TODO

  • reduce flicker/delay on resize
  • random levels

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL