Complexity and Emergence in Games (Ch. 14 & 15). Seven Schemas Schema: Conceptual framework concentrating on one aspect of game design Schemas: –Games.

Slides:



Advertisements
Similar presentations
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Slide
Advertisements

Homework for Next Class Reading: Chapter 13 For a digital game of your choice (*): 1.Give an example of an element in the graphical user interface of the.
Decision Making Under Uncertainty CSE 495 Resources: –Russell and Norwick’s book.
Copyright © 2010, 2007, 2004 Pearson Education, Inc. Chapter 14 From Randomness to Probability.
Introduction to Philosophy Lecture 6 Pascal’s wager
Making Decisions and Predictions
Probability Abney Elementary.
Games as Emergent Systems first schema on “rules”.
Section 5.1 and 5.2 Probability
From Randomness to Probability
When Intuition Differs from Relative Frequency
Warm up 1)We are drawing a single card from a standard deck of 52 find the probability of P(seven/nonface card) 2)Assume that we roll two dice and a total.
Administrative This was the last homework for the semester (yay!) First run of games: October 16 nd in class –Short document describing: goal + operational.
Summary So Far Extremes in classes of games: –Nonadversarial, perfect information, deterministic –Adversarial, imperfect information, chance  Adversarial,
Games of probability What are my chances?. Roll a single die (6 faces). –What is the probability of each number showing on top? Activity 1: Simple probability:
Introduction to Probability and Risk in Financial Investment
Probability And Expected Value ————————————
Expected Value.  In gambling on an uncertain future, knowing the odds is only part of the story!  Example: I flip a fair coin. If it lands HEADS, you.
Copyright © 2010, 2007, 2004 Pearson Education, Inc. Chapter 14 From Randomness to Probability.
Review of Probability and Binomial Distributions
Information Theory and Games (Ch. 16). Information Theory Information theory studies information flow Under this context information has no intrinsic.
The Marriage Problem Finding an Optimal Stopping Procedure.
Chapter 9 Introducing Probability - A bridge from Descriptive Statistics to Inferential Statistics.
COMP14112: Artificial Intelligence Fundamentals L ecture 3 - Foundations of Probabilistic Reasoning Lecturer: Xiao-Jun Zeng
RECAP Game Design Class Héctor Muñoz-Avila. Motivation Compelling games don’t need –the latest and best graphics –deep narrative or involved story line.
Administrative: “Design New Game” Project Apply the principles of Iterative Design –First run of games in class: March 28 th in class Short document describing:
Please turn off cell phones, pagers, etc. The lecture will begin shortly.
1 9/23/2015 MATH 224 – Discrete Mathematics Basic finite probability is given by the formula, where |E| is the number of events and |S| is the total number.
1-1 Copyright © 2015, 2010, 2007 Pearson Education, Inc. Chapter 13, Slide 1 Chapter 13 From Randomness to Probability.
Sullivan – Fundamentals of Statistics – 2 nd Edition – Chapter 5 Section 1 – Slide 1 of 33 Chapter 5 Section 1 Probability Rules.
Risk, Probability and Judgment. The Harnessed AtomRisk, Probability, and Judgment 2 Today’s Topics What is risk? How do we perceive risk? How do we measure.
Phil 148 Choices. Choice Theory: The relationship between probability and action is often complex, however we can use simple mathematical operations (so.
Introduction to Philosophy Lecture 6 Pascal’s wager By David Kelsey.
Axioms Let W be statements known to be true in a domain An axiom is a rule presumed to be true An axiomatic set is a collection of axioms Given an axiomatic.
1.3 Simulations and Experimental Probability (Textbook Section 4.1)
DR. DAWNE MARTIN DEPARTMENT OF MARKETING Show Me the Money.
What is Probability?. The Mathematics of Chance How many possible outcomes are there with a single 6-sided die? What are your “chances” of rolling a 6?
Probability Evaluation 11/12 th Grade Statistics Fair Games Random Number Generator Probable Outcomes Resources Why Fair Games? Probable Outcome Examples.
Copyright © 2010 Pearson Education, Inc. Unit 4 Chapter 14 From Randomness to Probability.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 14 From Randomness to Probability.
5.1 Probability in our Daily Lives.  Which of these list is a “random” list of results when flipping a fair coin 10 times?  A) T H T H T H T H T H 
Warm Up If Babe Ruth has a 57% chance of hitting a home run every time he is at bat, run a simulation to find out his chances of hitting a homerun at least.
WOULD YOU PLAY THIS GAME? Roll a dice, and win $1000 dollars if you roll a 6.
GamblingGambling What are the odds? Jessica Judd.
Information Theory and Games (Ch. 16). Information Theory Information theory studies information flow Information has no meaning –As opposed to daily.
Binomial Distributions Chapter 5.3 – Probability Distributions and Predictions Mathematics of Data Management (Nelson) MDM 4U.
Unit 5: Probability: What are the Chances?
If you toss a coin ten times, what is the probability of getting three or more “heads” in a row? If an airline overbooks a certain flight, what is the.
Administrative: “Create New Game” Project Apply the principles of Iterative Design –First run of games in class: March 28 th in class Short document describing:
Binomial Distributions Chapter 5.3 – Probability Distributions and Predictions Mathematics of Data Management (Nelson) MDM 4U Authors: Gary Greer (with.
Copyright © 2010 Pearson Education, Inc. Chapter 14 From Randomness to Probability.
C HAPTER 6: P ROBABILITY Section 6.1 – The Idea of Probability.
Chance We will base on the frequency theory to study chances (or probability).
Chapter 8: The Binomial and Geometric Distributions 8.2 – The Geometric Distributions.
Recap From Previous Classes (I) Games as Schemes of Uncertainty –Macro-level: We don’t know outcome of game –Micro-level: Probability is assigned to outcome.
Uncertainty and Games (Ch. 15). Uncertainty If a game outcome is certain can it achieve meaningful play? –Example of such a game? Two kinds of uncertainty:
From Randomness to Probability
Dealing with Random Phenomena
Defining Rules and Levels of Rules (Chs. 11 & 12)
From Randomness to Probability
5.1 Probability of Simple Events
Critical Thinking Lecture 14 Pascal’s wager
From Randomness to Probability
From Randomness to Probability
Probability And Expected Value ————————————
Probability And Expected Value ————————————
From Randomness to Probability
Fun… Tree Diagrams… Probability.
From Randomness to Probability
Complexity and Emergence in Games (Ch. 14)
Presentation transcript:

Complexity and Emergence in Games (Ch. 14 & 15)

Seven Schemas Schema: Conceptual framework concentrating on one aspect of game design Schemas: –Games as Emergent Systems –Games as Systems of Uncertainty –Games as Information Theory Systems –Games as Systems of Information –Games as Cybernetic Systems –Games as Game Theory Systems –Games as Systems of Conflict

Have You Ever Been Surprised in a Game? Was it scripted?scripted Was it a result of Game Design? Could a game developer be surprised from his own game?

Systems and Complexity Reminder: –What is a system? –Why can game be viewed as systems? System’s Complexity: measure of number of ways in which parts interact within a system: –Elevator example: simple algorithm used to control one elevator, when used to control multiple elevators it fails Four categories of system’s complexity: –Fixed –Periodic –ComplexComplex –Chaotic (this is NOT computational complexity)

Complexity and Meaningful Play Are these two related? –What happens if there is no interaction between play elements? Example : Grid game –Is it meaningful? –Lets add complexity: relations between play elements Does it achieves meaningful play? Ways parts interact within a system Discernable and integrated actions

Emergence Behavior of the overall system is greater than its parts Example: simple operational rules yet unpredictable results are attained Obvious example: complex operational rules However: complex rules doesn’t make game harder. Example? Chess: last century versus current century Backgammon machine learning example Warcraft Bluffing –Chess vs GoGo

Classes of Object Interactions Coupled: objects are linked or affect with one another recursively –Non-gaming Example: ant colony –Gaming example? Context-dependent: changes are not the same over time –Non-gaming example: behaviors of the colony under attack versus harvesting –Gaming example? Emergence in a system occurs when interactions are coupled and context-dependent To achieve emergent behavior in a game: Tuning (or iterative design) is needed

However: Be careful! Example of bad “emergence” in games? Countering that bad “emergence” can lead to trouble for game developers Which again reinforces the idea of iterative design Exploit 1Exploit 1, exploit 2, exploit 3exploit 2exploit 3

Let us plan for Wednesday Bring laptop/ipad/… to run your game Lets discuss Locations All students are encouraged to try their classmates’ games –If you are not showing the game at any point during the session, play someone else’s and give them feedback In addition, students who are not creating game need hand to me a filled form at the end of class

Uncertainty and Games (Ch. 15)

Uncertainty If a game outcome is certain can it exhibit meaningful play? Two kinds of uncertainty: –Macro-level (overall game) –Micro-level (individual player’s actions)

Uncertainty and Categories of Games According to AI Perfect information Imperfect information Deterministic Chance Yes For which of the following categories, label with “Yes” those for which games can have uncertainty Lesson: you don’t have to “rolling a dice” to achieve uncertainty in a game

Feeling of Randomness We can even achieve a feeling of randomness in a deterministic perfect information game –Example? Danger: designing a chaotic game –Example?

Probability in Games Probability: a mathematical formalization of uncertainty Examples of probabilities in games: In a game like Chutes and Ladders, players do not make decisions (probabilities – a random number generator is deciding-), why is it “fun”?  chance to hit  amount of damage dealt  Next shape in Tetris  Initial location in a multiplayer RTS game  Loot in an MMO  …

Probability Example. Suppose that you are in a TV show and you have already earned 1’ so far. Now, the host propose you a gamble: he will flip a coin if the coin comes up heads you will earn 3’ But if it comes up tails you will loose the 1’ What do you decide? We know a degree of belief Probability theory allows the analysis of decisions based on the degree of belief

Probability Suppose that I flip a “fair” coin:  what is the probability that it will come heads: 0.5 Suppose that I flip a “totally unfair” coin (always come heads):  what is the probability that it will come heads: 1 Assigns a number between 0 and 1 to events The closer an event is to 1, the more likely we believe it will occur The closer an event is to 0, the less likely we believe it will occur

Probability Distribution The events E 1, E 2, …, E k must meet the following conditions: One always occur No two can occur at the same time The probabilities p 1, …, p k are numbers associated with these events, such that 0  p i  1 and p 1 + … + p k = 1 A probability distribution assigns probabilities to events such that the two properties above holds

Example (Probability Distribution) In the example: E 1 = “holding a $5 ticket” E 2 = “holding a $10 ticket” E 3 = “holding a $100 ticket” E 4 = “holding a losing ticket” The probabilities are: p 1 =.09 p 2 =.009 p 3 =.001 p 4 =.9 Note that the probabilities add to 1 Could we add E 5 = “holding a winning ticket”? No! because E 5 occurs at the same time as E 1, E 2 and E 3 Example: 1000 tickets are sold at a value of $1 each 100 are selected. The first 90 win $5, the next 9 win $10, and the last will win $100

Probability in Games (II) Let us build a probability distribution for the following game situations (so we have to list the events and their probabilities): We can use probabilities to building “smart” NPCs:  chance to hit: statisticschance statistics  Next shape in Tetris  Initial location in a multiplayer RTS game  Loot in an RPGLoot RPG  Should NPC attack another NPC/avatar?  “AI” has control of 5 NPC and has to pick one to fight the NPC/avatar, which one should it choose?

Expected Utility (I) We are given a probability distribution:  The events E 1, E 2, …, E k  The probabilities p 1, …, p k associated with these events  We have the value of those events: U(E 1 ), U(E 2 ), …, U(E k ) The Expected Utility (EU):  EU = p 1 * U(E 1 ) + … + p k * U(E k ) Examples:  EU for the fair coin and I bet $10  EU for the lottery example

Expected Utility: Example Coming back to the example: Answer to that depends on: – the probability of winning $0 or $ 3’ –How much money you currently have –Expected utility: a measure of how much I would gain from taking an action Suppose that you are in a TV show and you have already earned 1’ so far. Now, the host propose you a gamble: he will flip a coin if the coin comes up heads you will earn 3’ But if it comes up tails you will loose the 1’ What do you decide?

Expected Utility in Games Let us design the following game situation by thinking about the expected utility: We can use expected utilities to building even “smarter” NPCs:  Player will fight “big bad monster”. What is a potential probability distribution modeling this and what would be potential value for the player?  Should “AI” attack the player?

Warnings about Probabilities (1) A random function assigns to k events: E 1, E 2, …, E k, the same probability: 1/k (called “uniform distribution”)  Example: rolling a dice has 6 events (one for each face) with probability of each occurring been 1/6 Problem: Computers cannot make a perfectly random function  It is “random” in the sense that you cannot predict the outcome in advance  But it is not a uniform distribution  This is due to the fact that computers are intrinsically deterministic  But error is too small to matter

Warnings about Probabilities (2) People do not always follow the rules of probability:  Experiment with people  Choice was given between A and B and then between C and D: A: 80% chance of $4000 B: 100% chance of $3000 C: 20% chance of $4000 D: 25% chance of $3000

Warnings about Probabilities (2) Majority choose B over A and C over D  This turns out to be mathematically inconsistent with the expected utility:  U(3000) > 0.8U(4000) and  0.2U(4000) > 0.25U(3000)  There are no possible values for U(4000) and U(3000) that will satisfy these two inequalities Book discusses other miss-conceptions

Final Thought Probability is not required to get a feeling of randomness in games But well laid-out element of chance will result in meaningful choices –Or build “smart” NPCs that will enhance game value Example: Player needs to decide whether to attack a monster or not based  This decision is based on expected utility  A “feeling” of how success will it be  Sometimes players can get quite formalformal  How worth would it be if successful  Careful use of macro- and micro-level uncertainty can result in “epic” game experience