Skip to content

Instantly share code, notes, and snippets.

View dan070's full-sized avatar
💭
on the case!

Dan Gustafsson dan070

💭
on the case!
View GitHub Profile
@dan070
dan070 / monopoly-simulation
Created April 17, 2025 05:54
Monopoly solo simulation
import random
from collections import defaultdict, namedtuple
# Define the board positions
BoardPosition = namedtuple('BoardPosition', ['name', 'type'])
board = [
BoardPosition("Gå. Inkassera 4000.", None), ## 0
BoardPosition("Västerlånggatan (BRUN)", None),
BoardPosition("Card A - 1", "A"),
BoardPosition("Hornsgatan (BRUN)", None),