Lecture 24 nov 2022:
Modelling schnapsen in propositional logics:
You can use logic for games in two ways; reasoning over models / states, or modeling strategies.
Reasoning over states in phase 2:
- ‘Would I be safe when playing the king of hearts.’
- f.e. -O10H ^ -OAsH ^ (OQH v OJH)
- The opponent does not have a higher card, but he does have a lower card of the same color
- Forgetful Schnapsen
- The way human play, up to now we have the assumption that perfect information in phase 2,
but:
- Normal players forget the cards that were played earlier
- I can remember Trumps (on good days)
- I can sometimes remember Asses (on good days)
- I can remember 10s on exceptional days
- We need to use logical reasoning to deal with this imperfect information
Modelling schnapsen cards:
- Use the representation of the cards of the practical assignments to give a numerical value to
each of the cards that’s in the game.
- This information can be modeled to propositions: If the card value is true it means that it exists
in the representation, if the color value is true it means that it’s black.
- In logic you want to evaluate the properties of a card given a deck.
- ‘Is a card entailed by KB w.r.t. PLayNoTrumpJackStrategy?
- We would have to pair all the propositions:
- FOR ALL x: PNTJS <-> J(x) ^ -Trump(x)
- This needs to be checked for each card, but it will work (huge kb)
- Pros:
- Propositional logic is declarative: you write out the properties that something should have
- Unlike in machine learning
- It allows partial/disjunctive/negated information
- Unlike most data structures and databases
- Compositional
- Meaning in propositional logic is context-independent
- In natural language humans can use the context that something was was said in to nd
the meaning
- Meaning does not depend on context and is always the same
- Cons:
- Propositional logic has very limited expressive power (unlike natural language), there are
very many things we cannot say in propositional logic
- Usage for Schnapsen is rather complicated (aka impossible)
Rule based reasoning:
An inference rule is a logical form consisting of a function which takes premises, analyzes their
syntax and returns a conclusion:
- Rules are often abbreviated as A -> B or A over B, this is not the same as ((A->B) ^ A) ->B
- Or with -> (written as ==>) (alpha ==> beta, alpha) over beta (models ponens)
Very speci c with propositional logic language, they are di erent to the object language to which
you model your domain.
- And elimination: form a conjunction any conjunct can be inferred: alpha ^ beta over alpha
- Logical equivalences can be used as rules: (alpha <==> beta) over ((alpha ==> beta ^ beta ==>
alpha)).
Searching for proofs: monotonicity, the set of entailed sentences can only increase as information
is added to the kb. The higher the input gets the higher the output gets. This can be applied to
logic. For any sentence alpha and beta: if KB |= alpha then KB ^ beta |= alpha
Forward chaining is data driven
Backward chaining is goal driven
fi ff fi
Voordelen van het kopen van samenvattingen bij Stuvia op een rij:
Verzekerd van kwaliteit door reviews
Stuvia-klanten hebben meer dan 700.000 samenvattingen beoordeeld. Zo weet je zeker dat je de beste documenten koopt!
Snel en makkelijk kopen
Je betaalt supersnel en eenmalig met iDeal, creditcard of Stuvia-tegoed voor de samenvatting. Zonder lidmaatschap.
Focus op de essentie
Samenvattingen worden geschreven voor en door anderen. Daarom zijn de samenvattingen altijd betrouwbaar en actueel. Zo kom je snel tot de kern!
Veelgestelde vragen
Wat krijg ik als ik dit document koop?
Je krijgt een PDF, die direct beschikbaar is na je aankoop. Het gekochte document is altijd, overal en oneindig toegankelijk via je profiel.
Tevredenheidsgarantie: hoe werkt dat?
Onze tevredenheidsgarantie zorgt ervoor dat je altijd een studiedocument vindt dat goed bij je past. Je vult een formulier in en onze klantenservice regelt de rest.
Van wie koop ik deze samenvatting?
Stuvia is een marktplaats, je koop dit document dus niet van ons, maar van verkoper nasrrr. Stuvia faciliteert de betaling aan de verkoper.
Zit ik meteen vast aan een abonnement?
Nee, je koopt alleen deze samenvatting voor €2,99. Je zit daarna nergens aan vast.