Overview
Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore the intersection of Dungeons & Dragons and functional programming in this 59-minute conference talk. Dive into domain modeling using F# to tackle the complex ruleset of D&D. Learn practical tips and tricks for functional programming while following along on an epic adventure. Discover how to use discriminated unions, pattern matching, and other F# features to model game elements like abilities, modifiers, and weapons. Examine approaches to handling complex scenarios such as wyvern attacks and determining fair fights. Gain insights from functional programming experts and consider alternative modeling strategies. By the end, you'll have a deeper understanding of both D&D mechanics and functional domain modeling techniques.
Syllabus
Intro
Origin Story
Ogres, Goblins, & Company
Discriminated Union
Abilities
Pattern Matching
Modifiers
Pattern Match to extract data
Wyvern attacks
Light, Heavy Weapons
Tomas Petricek
What is a fair fight?
Modeling (4)
Scott Wlaschin
Alternatives
What's missing?
Thank You! (Cast Bless)
Taught by
NDC Conferences