onnowhere / Lights-Out

A fun experiment into smaller and smaller ways to implement the game Lights Out in Minecraft without functions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Lights Out

Table of Contents

Info

These maps were made for a challenge to implement Lights Out in the smallest way possible. Each version from 1 to 10 progressively makes more compromises and interpretations of the rules, for example, version 7 introduces structure blocks and version 9 allows the use of datapacks without functions. Each world has a corresponding README file detailing what optimizations, compromises, and considerations were used in its making, along with a list of commands used. In the end, this was moreso just a fun, non-serious experiment into different ways to achieve the same goal.

Challenge rules

Any cell interacted should toggle it's own color between white and black, as well as all immedately adjacent cells. Board must be a Minimum of 4x4. There needs to be a win condition for both if player turns all lights off or on. Game must automatically randomize the board when generated in a win-able condition.

Code golf criteria

Command size is counted by the size of the text file with LF endings in bytes, with each command on a new line. See commands.txt for a list of commands used. All commands stored anywhere before initialization will be listed in the file. Additional arbitrary goals include making the base system all one line, having the smallest possible blocks used after initialization, and not use functions.

Credits

  • Code golf challenge by: FetchBot and Lyfeless
  • Worlds created by: Onnowhere
  • Reduced with help from: Command Master
  • Additional input from: Miestrode, boxbox, vdvman1, FetchBot, Lyfeless, tryashtar, ncfumction, ErrorCraft, Cloud Wolf, Arcensoth, nick

About

A fun experiment into smaller and smaller ways to implement the game Lights Out in Minecraft without functions


Languages

Language:Python 100.0%