Skip to content

Instantly share code, notes, and snippets.

View julienc91's full-sized avatar
🐧

Julien Chaumont julienc91

🐧
View GitHub Profile
@julienc91
julienc91 / brainfuck.py
Created June 1, 2020 17:58
A Brainfuck/Ook/Spoon interpreter in python
#!/usr/bin/env python3
import sys
from collections import defaultdict
class AbstractInterpreter:
"""
This is a very basic Brainfuck interpreter
"""
@julienc91
julienc91 / demonetization_game.py
Created May 14, 2019 20:16
The Demonetization Game
#!/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