Skip to content

Instantly share code, notes, and snippets.

View mousetail's full-sized avatar
💭
Working on discord bot

Maurits van Riezen mousetail

💭
Working on discord bot
View GitHub Profile
@mousetail
mousetail / knight.js
Last active August 24, 2022 08:22 — forked from Steffan153/knight.js
Bubbler version of Knight, forked from Seffan
const fs = require('node:fs');
const input = String.fromCharCode(...fs.readFileSync(0)).split('\n');
const source = fs.readFileSync('source.knight', 'utf8');
const Knight = (() => {
let inputs = [];
let output = '';
class KnightError extends Error {}
class ParseError extends KnightError {}
class RuntimeError extends KnightError {}