This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import sys | |
from collections import defaultdict | |
class AbstractInterpreter: | |
""" | |
This is a very basic Brainfuck interpreter | |
""" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
""" | |
A script inspired by Vsauce2's video: "The Demonetization Game" | |
https://www.youtube.com/watch?v=kOnEEeHZp94 | |
""" | |
import random | |
from typing import List, Tuple | |
from dataclasses import dataclass |