Skip to content

Instantly share code, notes, and snippets.

View semibran's full-sized avatar

Brandon Semilla semibran

View GitHub Profile
@semibran
semibran / rle.js
Last active June 10, 2022 23:43
Run Length Encoding file format pattern parser for Conway's Game of Life
module.exports = function decode(string) {
var cells = []
var ignore = false
var step = 1
var x = 0
var y = 0
var match, number
for (var i = 0; i < string.length; i++) {
if (ignore) {
if (string[i] === "\n") {

Keybase proof

I hereby claim:

  • I am semibran on github.
  • I am semibran (https://keybase.io/semibran) on keybase.
  • I have a public key ASDZYQObhaN1u_7eQdRXl3LB2nEcTyDUGbQESJ2eTipZhgo

To claim this, I am signing this object:

================================
== SPACE ROGUELIKE DESIGN DOC ==
================================
~ STORY ~
...in the year 2144...
Man starts a colossal asteroid base on Ceres. The protagonist (you can select "The protagonist", press CTRL+D multiple times to select all instances) discovers a futuristic sounding element known as "chronomium".