Skip to content

Instantly share code, notes, and snippets.

// ==UserScript==
// @name Automate Distance-Incremental
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match http://raw.githack.com/Jacorb90/Distance-Incremental/master/main.html
// @grant none
// ==/UserScript==
# git autocompletion and prompt
GIT_COMPLETION_SOURCE=~/bin/startup-scripts/git-completion.bash
if [ -f $GIT_COMPLETION_SOURCE ]; then
. $GIT_COMPLETION_SOURCE
fi
GIT_PROMPT_SOURCE=~/bin/startup-scripts/git-prompt.sh
if [ -f $GIT_PROMPT_SOURCE ]; then
. $GIT_PROMPT_SOURCE
export GIT_PS1_SHOWDIRTYSTATE=1
INT 3 ; 000
MOV [165],A ; 001
INT 5 ; 002
MOV [168],A ; 003
MOV [169],B ; 004
INT 3 ; 005
INT 6 ; 006
MOV [166],A ; 007
MOV [167],B ; 008
MOV [170],B ; 009
;$func_main$
DUM 1
LDC 0
LDF 4 ; $func_locals_main$
TRAP 1
;$func_locals_main$
LDF 260 ; $func_always_default$
LD 1 0
CAR
LDF 685 ; $func_matrix_map$
# python gcpy.py -p ff.py -c -o ../data/lms/ff.gcc
from intrinsics import car, cdr, nil
def main(world, _ghosts):
field = matrix_map(always_default, world[0])
# password for logging
return (999888777, field), step