Dungeons, Dragons and Functions
summary
Argues that Dungeons & Dragons rules are a rich domain-modeling exercise and shows concrete results: uses F# and Fable + Elmish to encode abilities, attacks, dice expressions and an MVU UI, compiles to JavaScript and runs a battle simulator. Documents: PHB 316 pages, ~1,000 pages total; project stretches months (five so far), not a weekend. Built a simulator that plays automated fights (example: three goblins vs three wolves) and works for Monte Carlo-style runs, but effects, magic and terrain remain incomplete.
AI-written summary · about
chapters (4)
- 0:00Start
- 6:33Dungeons and Dragons, a.k.a D&D First published in 1974 Many iterations, current version D&D se First Role-Playing Game (RPG) Tolkien-inspired universe
- 8:42Playing D&D roles: Players, Dungeon Master (DM) Players decide what they want to do DM runs the world around them a slightly different phases Role play, flexible, focus is on interactions
- 15:59Algebraic Data Types * kind of composite type, formed by combining other types (Wikipedia)
related talks
01h 02mDungeons, Dragons and Functions
59mDungeons, Dragons and Functions
01h 01mDungeons, Dragons and Functions
52mF# in the real world
27mComputation expressions in context
01h 00mF# in the Real World
49mDomain Modeling Made Functional
51mFunctional Programming and Domain Driven Design - a match in Heaven!
