A port of drugwars, the game on TI calculators, to js.