Skip to content

Instantly share code, notes, and snippets.

View badocelot's full-sized avatar

James M. Jensen II badocelot

View GitHub Profile
@badocelot
badocelot / lmc.py
Created March 28, 2018 04:03
Little-Man Computer Simulator + 4-bit Rule110 program for it
class LMComputer:
class Memory:
def __init__(self):
self.__cells = [0] * 100
def __getitem__(self, key):
return self.__cells[key]
def __setitem__(self, key, value):
if isinstance(key, int) and 0 <= key <= 99: