Overview
Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore domain modeling with F# through the lens of Dungeons & Dragons in this engaging conference talk. Delve into the complex ruleset of D&D as a practical exercise in software engineering, using functional programming techniques to tame the monster of game mechanics. Learn how to leverage F#'s powerful features like discrimination unions, pattern matching, and algebraic data types to model abilities, combat, and decision-making processes. Gain practical tips and tricks for functional programming while following along on an epic adventure in code. Discover how to tackle challenges such as ability scores, modifiers, weapons, dice rolls, and combat state updates using F#'s expressive syntax. Whether you're a D&D enthusiast or a software engineer looking to sharpen your domain modeling skills, embark on this hour-long journey to uncover the intersection of tabletop gaming and functional programming.
Syllabus
Intro
What do you do
Story
Who is Mathias
Agenda
Agency
Making a Game Interesting
Dungeons Dragons
Rules
Books
Roleplay
Domain Modeling
Abilities
Discrimination Union
Ability Score
Record
Pattern Matching
Modifiers
Algebraic Data Types
Parallelization
Ranged
Nesting Dolls
The Problem
The Mantra
The Wyvern
The Lie
Damage
List
Wyvern
Options
Weapons
Discrimination Unions
Dice Rolls
Model Expressions
Combat
State
Update
Decision Needed
Validation
Conclusion
Thank you
Making a decision
Taught by
NDC Conferences