SlideShare a Scribd company logo
Ludocore: A Logical Game Engine for Modeling Videogamesamsmith@soe.ucsc.eduCIG 2010 – Copenhagen, DenmarkAdam M. Smith (presenter),Mark J. Nelson, and Michael Mateas
Ludocore is a game enginethat helps you model videogames.
What is a model of a videogame?Motherload(XGen Studios, 2004)DrillBot 6000(Smith et al., 2009)a complete gamea playable game sketchmodeling a complete game
Why build models of videogames?Models are easier to build than complete games.	ANDPlaytesting these models leads to understanding of design ideas.
“Game engines”Conventional game engines:Solutions to game programming problems (physics, graphics, sound, network, …)API or scripting languageLudocore (a logical game engine):Solutions to logical game modeling problems (actions, effects, expectations about players, …)Sketching language
OutlineModeling approachesBuilding up a logical game modelUse casesPerspective
Modeling ApproachesState-transition formalismsState over time leading to rewards……but games have rulesGame Description Language (Love et al., 2004)Representation using logic programsGame concepts (players, moves, goals)Event calculus for game modeling (Nelson et al., 2008)Independently modifiable rules“Commonsense law of inertia”
Building up a logical game model (Step 0)A complete, logical game modelEach box is a pile of logical assertions.Game-specificCommon
Building up a logical game model (Step 1)Temporal logic foundationsIdea: A small set of axioms defines truth-over-time.Concepts:timepoints
fluents
 events
 initiation/termination
tracesEvent Calculus
Building up a logical game model (Step 2)A theory of playable simulationsIdea: Upgrade the foundation for the common problems of game modeling.Game EngineConcepts: game state
 game events
 player/nature modelsEvent Calculus
Building up a logical game model (Step 3)A specification of a gameIdea: Quickly implement the game’s world in terms of foundational concepts.Game EngineGame RulesStateEventsConsequencesNature model------------------------------------------Supporting conceptsWorld configurationDynamicTimelessEvent Calculus
Building up a logical game model (Step 4)A model of expected playIdea: Plug in your knowledge of players to improve model accuracy.Player ModelGame EngineGame RulesStateEventsConsequencesNature model------------------------------------------Supporting conceptsWorld configurationConcepts:player_asserts
player_forbidsEvent Calculus
Building up a logical game model (Step 5)A focused view of some play situationSpeculative AssumptionsIdea: Throw on extra constraints to zoom-in on situations of interest. Player ModelGame EngineGame RulesStateEventsConsequencesNature model------------------------------------------Supporting conceptsWorld configurationAsk questions by… Posing scenarios

More Related Content

Similar to Ludocore: A Logical Game Engine for Modeling Videogames (20)

PDF
GDF: A Gamification Design Framework powered by Model-Driven Engineering
antbucc
 
PDF
Unreal Ahmedabad Meetup Hosted by 300Minds.pdf
Samir Patel
 
PPTX
Crafting Interactive Experiences Through Game Programming.pptx
shilpamathur13
 
PPTX
Introduction to Game Development
Shaan Alam
 
PPT
My Presentation.ppt
Fake474384
 
PPTX
Introduction to Game Engine: Concepts & Components
Pouya Pournasir
 
PPTX
Matching Game Mechanics and Human Computation Tasks in Games with a Purpose
Luca Galli
 
PPTX
Matching Game Mechanics and Human Computation Tasks in Games with a Purpose
CUbRIK Project
 
PDF
Connecting the Box - On Tabletop Games and Technology
Samuel Miller
 
PDF
Game Analytics & Machine Learning
Ben Weber
 
PPT
Wakka Monkey - Game Development
Wakka Monkey
 
PPTX
Level-Up Poster V3
Cory Buckley
 
PPT
Introduction to game_design
Sayed Ahmed
 
PPTX
First Seminar Presentation
Abdelrahman Al-Ogail
 
PDF
Designing a pragmatic back-end service for mobile games
iFunFactory Inc.
 
PPTX
Game Architecture and Programming
Sumit Jain
 
PDF
R.A.W - THE GAME
IRJET Journal
 
PDF
Components of Computing Game
Muhammad Sajid
 
PDF
A realtime classic chess game [proposal]
Nischal Lal Shrestha
 
PPTX
Android Game Minisyonize
savvy
 
GDF: A Gamification Design Framework powered by Model-Driven Engineering
antbucc
 
Unreal Ahmedabad Meetup Hosted by 300Minds.pdf
Samir Patel
 
Crafting Interactive Experiences Through Game Programming.pptx
shilpamathur13
 
Introduction to Game Development
Shaan Alam
 
My Presentation.ppt
Fake474384
 
Introduction to Game Engine: Concepts & Components
Pouya Pournasir
 
Matching Game Mechanics and Human Computation Tasks in Games with a Purpose
Luca Galli
 
Matching Game Mechanics and Human Computation Tasks in Games with a Purpose
CUbRIK Project
 
Connecting the Box - On Tabletop Games and Technology
Samuel Miller
 
Game Analytics & Machine Learning
Ben Weber
 
Wakka Monkey - Game Development
Wakka Monkey
 
Level-Up Poster V3
Cory Buckley
 
Introduction to game_design
Sayed Ahmed
 
First Seminar Presentation
Abdelrahman Al-Ogail
 
Designing a pragmatic back-end service for mobile games
iFunFactory Inc.
 
Game Architecture and Programming
Sumit Jain
 
R.A.W - THE GAME
IRJET Journal
 
Components of Computing Game
Muhammad Sajid
 
A realtime classic chess game [proposal]
Nischal Lal Shrestha
 
Android Game Minisyonize
savvy
 

More from rndmcnlly (6)

PPTX
Two Methods for Voxel Detail Enhancement
rndmcnlly
 
PPTX
A Case Study of Expressively Constrainable Level Design Automation Tools for ...
rndmcnlly
 
PPTX
Mechanizing Exploratory Game Design (PhD Defense)
rndmcnlly
 
PDF
BMOSLFGEMW: A Spectrum of Game Engine Architectures
rndmcnlly
 
PPTX
Variations Forever: Flexibly Generating Rulesets from a Sculptable Design Spa...
rndmcnlly
 
PPTX
The intelligent game designer: Game design as a new domain for automated disc...
rndmcnlly
 
Two Methods for Voxel Detail Enhancement
rndmcnlly
 
A Case Study of Expressively Constrainable Level Design Automation Tools for ...
rndmcnlly
 
Mechanizing Exploratory Game Design (PhD Defense)
rndmcnlly
 
BMOSLFGEMW: A Spectrum of Game Engine Architectures
rndmcnlly
 
Variations Forever: Flexibly Generating Rulesets from a Sculptable Design Spa...
rndmcnlly
 
The intelligent game designer: Game design as a new domain for automated disc...
rndmcnlly
 
Ad

Recently uploaded (20)

PDF
Peak of Data & AI Encore - Real-Time Insights & Scalable Editing with ArcGIS
Safe Software
 
PDF
State-Dependent Conformal Perception Bounds for Neuro-Symbolic Verification
Ivan Ruchkin
 
PDF
introduction to computer hardware and sofeware
chauhanshraddha2007
 
PDF
TrustArc Webinar - Navigating Data Privacy in LATAM: Laws, Trends, and Compli...
TrustArc
 
PDF
Researching The Best Chat SDK Providers in 2025
Ray Fields
 
PDF
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
PPTX
Agentic AI in Healthcare Driving the Next Wave of Digital Transformation
danielle hunter
 
PDF
Make GenAI investments go further with the Dell AI Factory
Principled Technologies
 
PDF
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
 
PDF
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
PDF
Responsible AI and AI Ethics - By Sylvester Ebhonu
Sylvester Ebhonu
 
PPTX
Agile Chennai 18-19 July 2025 Ideathon | AI Powered Microfinance Literacy Gui...
AgileNetwork
 
PPTX
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
PPTX
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
PPTX
AI Code Generation Risks (Ramkumar Dilli, CIO, Myridius)
Priyanka Aash
 
PPTX
OA presentation.pptx OA presentation.pptx
pateldhruv002338
 
PPTX
The Future of AI & Machine Learning.pptx
pritsen4700
 
PPTX
Farrell_Programming Logic and Design slides_10e_ch02_PowerPoint.pptx
bashnahara11
 
PPTX
Agile Chennai 18-19 July 2025 | Workshop - Enhancing Agile Collaboration with...
AgileNetwork
 
PDF
NewMind AI Weekly Chronicles – July’25, Week III
NewMind AI
 
Peak of Data & AI Encore - Real-Time Insights & Scalable Editing with ArcGIS
Safe Software
 
State-Dependent Conformal Perception Bounds for Neuro-Symbolic Verification
Ivan Ruchkin
 
introduction to computer hardware and sofeware
chauhanshraddha2007
 
TrustArc Webinar - Navigating Data Privacy in LATAM: Laws, Trends, and Compli...
TrustArc
 
Researching The Best Chat SDK Providers in 2025
Ray Fields
 
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
Agentic AI in Healthcare Driving the Next Wave of Digital Transformation
danielle hunter
 
Make GenAI investments go further with the Dell AI Factory
Principled Technologies
 
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
 
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
Responsible AI and AI Ethics - By Sylvester Ebhonu
Sylvester Ebhonu
 
Agile Chennai 18-19 July 2025 Ideathon | AI Powered Microfinance Literacy Gui...
AgileNetwork
 
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
AI Code Generation Risks (Ramkumar Dilli, CIO, Myridius)
Priyanka Aash
 
OA presentation.pptx OA presentation.pptx
pateldhruv002338
 
The Future of AI & Machine Learning.pptx
pritsen4700
 
Farrell_Programming Logic and Design slides_10e_ch02_PowerPoint.pptx
bashnahara11
 
Agile Chennai 18-19 July 2025 | Workshop - Enhancing Agile Collaboration with...
AgileNetwork
 
NewMind AI Weekly Chronicles – July’25, Week III
NewMind AI
 
Ad

Ludocore: A Logical Game Engine for Modeling Videogames

  • 1. Ludocore: A Logical Game Engine for Modeling [email protected] 2010 – Copenhagen, DenmarkAdam M. Smith (presenter),Mark J. Nelson, and Michael Mateas
  • 2. Ludocore is a game enginethat helps you model videogames.
  • 3. What is a model of a videogame?Motherload(XGen Studios, 2004)DrillBot 6000(Smith et al., 2009)a complete gamea playable game sketchmodeling a complete game
  • 4. Why build models of videogames?Models are easier to build than complete games. ANDPlaytesting these models leads to understanding of design ideas.
  • 5. “Game engines”Conventional game engines:Solutions to game programming problems (physics, graphics, sound, network, …)API or scripting languageLudocore (a logical game engine):Solutions to logical game modeling problems (actions, effects, expectations about players, …)Sketching language
  • 6. OutlineModeling approachesBuilding up a logical game modelUse casesPerspective
  • 7. Modeling ApproachesState-transition formalismsState over time leading to rewards……but games have rulesGame Description Language (Love et al., 2004)Representation using logic programsGame concepts (players, moves, goals)Event calculus for game modeling (Nelson et al., 2008)Independently modifiable rules“Commonsense law of inertia”
  • 8. Building up a logical game model (Step 0)A complete, logical game modelEach box is a pile of logical assertions.Game-specificCommon
  • 9. Building up a logical game model (Step 1)Temporal logic foundationsIdea: A small set of axioms defines truth-over-time.Concepts:timepoints
  • 14. Building up a logical game model (Step 2)A theory of playable simulationsIdea: Upgrade the foundation for the common problems of game modeling.Game EngineConcepts: game state
  • 17. Building up a logical game model (Step 3)A specification of a gameIdea: Quickly implement the game’s world in terms of foundational concepts.Game EngineGame RulesStateEventsConsequencesNature model------------------------------------------Supporting conceptsWorld configurationDynamicTimelessEvent Calculus
  • 18. Building up a logical game model (Step 4)A model of expected playIdea: Plug in your knowledge of players to improve model accuracy.Player ModelGame EngineGame RulesStateEventsConsequencesNature model------------------------------------------Supporting conceptsWorld configurationConcepts:player_asserts
  • 20. Building up a logical game model (Step 5)A focused view of some play situationSpeculative AssumptionsIdea: Throw on extra constraints to zoom-in on situations of interest. Player ModelGame EngineGame RulesStateEventsConsequencesNature model------------------------------------------Supporting conceptsWorld configurationAsk questions by… Posing scenarios
  • 23. Using Ludocore modelsMethod:Assemble speculative assumptions.Request gameplay traces.Use cases:Running the simulation…ForwardBackwardSidewaysStructural queriesHuman playtesting
  • 24. Running the simulation…Forward: Traces starting from some initial conditionsBackward:Traces ending in some final conditionsSideways:Traces matching some conditions across timehappens(mine(a1),0).happens(drain,1).happens(drain,2).happens(trade,3).happens(mine(a2),4).happens(mine(a0),5).happens(down_to(a),6).happens(mine(space_canary_corpse),7).happens(mine(c0),8).happens(down_to(c),9).happens(down_to(f),10).happens(up_to(c),11).happens(up_to(a),12).happens(down_to(c),13).happens(down_to(f),14).A DrillBot 6000 event trace
  • 25. Structural queriesMethod:Mark certain elements of world configuration as flexible.Request gameplay traces including specific configurations.Determining mine positions in MinesweeperPlacing roads, buildings, and cliffs in Warzone 2100http://warzone2100.org.uk/manual-diorama.html
  • 26. Human playtestingUse a human playtester instead of the engine’s included solver. (Smith et al., 2009)Answers for…Engagement?Fun?Hesitation?
  • 27. PerspectiveLudocore doesn’t solve design problems.It provides intelligent feedback that helps humans solve design problems.Forward simulation: “Here’s an obvious bug!”Backward simulation: “My puzzle has no shortcuts.”Structural queries: “99 new level designs!”Human playtesting: “Players always go left at the fork.”
  • 28. ConclusionLudocore provides a powerful representation for games and design expectations.Ludocore models supports focused, machine playtesting.One logical game model can enable a variety of uses.
  • 29. Thank youLudocore: A Logical Game Engine for Modeling Video GamesPresenter:Adam M. [email protected]

Editor's Notes

  • #3: Here is simple statement.Let me build some context around this statement before the bulk of the talk.
  • #4: Left: Motherload-- Mining robot, navigating a world, drilling out rocks to recover valuable ore, managing a continually draining energy supply, trade in rocks and refuel only at the top of the mapRight: db6k was created using our game engine with the same core mechanics, but art assets and other details stripped awayNote: Real games designers build prototypes like this as part of the design process for real games (abstract, programmer art, subset of complete mechancs). Making this kind of game as part of an experiment towards designing larger games is what separates prototypes from toy research games.Keep db6k in mind, it will be my running example.
  • #5: Quickly building informative models is what Ludocore is all about.Ludocore focuses on automated playtesting, but can be used with human players as well.
  • #6: Def: comprehensive software libraries for game developmentIn practice: a collection of code you would have had to re-write for every game, wrapped via an accessible interfaceNOTE: models that you create with L are fed into an answer set solver which produces detailed gameplay traces(no code in this talk)
  • #8: S-T (MDPs): misses the major point that games have RULES (some inherently factored rep of dynamic system from which gameplay emerges)GDL: but much easier to specify, still S-T at the core, ultimately designed to learn about (GG)players, not game designsEC: is a logic language for representing and reasoning about actions and their effectsRules: swap in/out, better resonates with how real games are defined – don’t write out a complete trans function, it emerges from rulesCLoI: imperative updates to state variables in game code;So: ec has properties we really want, but missing a game vocabulary and playtesting toolsLudocore: higher level formalism specific to building game models
  • #9: Models in our engine are made of components that incrementally build on each other.You could just write an ad-hoc game model from scratch (we did many times!), but this factoring seems to be useful.Fill up this diagram over the next few slides
  • #10: Temporal logic: We’ve found it useful to use EC as a base (vs something ad-hoc).Timepoints map to game simulation ticksFluents are conditions that can change over time (subject to CLoI), map to tables of game stateEvents instantaneous occurences, straight-forwardPluggable init/term rules, map to event handling logic in gamesTraces are logs of events and world state over time.Existence of interesting traces and their contents is where the design understanding comes from.TL: can be used to arbitrary systems with state change over time -- but: we focus on modeling systems which could reasonable be described by the code implementing some game
  • #11: NOTE: use drillbot examplesState: raw inertial state + computed views + implicit current-time (ex: occupied(Pos) ~ rock(R),in(R,P),holds(present(R),T) ,T=now)Events: conflict (mine and trade) vs. possibility (mine with energy) vs. selectability (trade with empty inventory)Player/Nature: tag subsets of game events as player actions or spontaneous/triggered actions (player’s avatar movement vs. NPC movement)Models: pluggable, selection policies for events (more later)MISSING: scoring, victory conditions (possible to build, but not necessary for most models)PRESENT: structure which supports the our factoring of game models, the dotted-line boundaries
  • #12: Given high-powered concepts in the background theory, Db6k is relatively easy to describeState: robot is at position with some energy, rock is presentEvents: mining, moving, refueling (only refuel at base, only move to empty cavern)Consequences: moving reduces energy (and changes position!), refueling restores itNature model: spontaneous energy drain (slow leakage over time, not a player’s move, but keeps happening, blame on nature)S Concepts: non-dynamic, but still critical definitions (how many energy levels there are, energy cost of actions)W Configuration: concrete level design and item specs (cavern network, tagging some rocks as treasure)
  • #13: Modeling the game’s rules isn’t enough to produce an informative model.There is a big gap between what is technically possible in a game and what you see during play (conj: game design is all about understanding this gap!). Demonstrating and documenting that gap is an important function of a game model (a play model, really).Asserts: refuel robot is at the base and under half energyForbids: no mining if there are more than 5 rocks in the inventoryDefault model says anything goes. Pile-on to incrementally carve away unrealistic behavior.
  • #14: Player model restricted the game model to only realistic gameplay traces.SAs do the same thing, restricting the model to only interesting traces (with interestingness at the whim of the designer).Scenarios: alternative initial conditionsGoals: something that must be true of every trace the model admitsMetrics: compute numerical score for any trace, ask to minimize or maximizeWrap up: this is what it takes to specify an informative model (requires modeling a focused view of some play situation)
  • #15: Method: (concretely) Writing a little bit of code- Running our command-line tool
  • #16: Initial conditions: robot starts underground with low energy. What can happen next?Final conditions: all rocks are collected at t=10. How did this happen?Partial spec: t=1..20, refueling only happened once (don’t know/care when). How did the robot survive?Event trace at right is actual output from design tools.
  • #17: Instead of trying to learn about the dynamic part of your game’s rules. SQs can tell you about the timeless/static parts of the rules.Minesweeper: What placements of mines on the map are consistent with the current visible game state? Puzzle solver in ~100 lines.Wz2100: What building locations and terrain heights are consistent with certain strategic-fairness constraints? We didn’t do this work, but the developers use the same logic tools we do.~ with our engine you could extend this procedural content generation with dynamic, gameplay contraintsThe magic: write down the mechanics for forward simulation and get a puzzle solvers and procedural content generators almost for free
  • #18: The Ludocore engine is heavy machinery behind Biped, a dual support prototyping tool we presented elsewhere.Letting a human play the role of an incremental forward simulator is relatively easy (computationally speaking).Human players reveal information that can’t be read from a symbolic trace.
  • #19: It can’t say a game is good or bad, but it can the provide objective feedback you need to form your own opinion.Taking this feedback and deciding the next gameplay experiment is what game design is all about.
  • #20: Design expectations: structure outside of just the game’s rules is critical for making the model informative. Machine playtesting: respects documented assumptions about real player behavior. Using logic for PCG? Come to my talk tomorrow at 11!