axle
.
game
prisoner
package
prisoner
Prisoner's Dilemma
https://en.wikipedia.org/wiki/Prisoner%27s_dilemma
Linear Supertypes
AnyRef
,
Any
Ordering
Alphabetic
By Inheritance
Inherited
prisoner
AnyRef
Any
Hide All
Show All
Visibility
Public
All
Type Members
case class
Betrayal
()
extends
PrisonersDilemmaMove
with
Product
with
Serializable
case class
PrisonersDilemma
(
p1:
Player
,
p1Strategy: (
PrisonersDilemma
,
PrisonersDilemmaState
) ⇒
Distribution0
[
PrisonersDilemmaMove
,
Rational
]
,
p1Displayer: (
String
) ⇒
Unit
,
p2:
Player
,
p2Strategy: (
PrisonersDilemma
,
PrisonersDilemmaState
) ⇒
Distribution0
[
PrisonersDilemmaMove
,
Rational
]
,
p2Displayer: (
String
) ⇒
Unit
)
extends
Product
with
Serializable
trait
PrisonersDilemmaMove
extends
AnyRef
case class
PrisonersDilemmaOutcome
(
p1YearsInPrison:
Int
,
p2YearsInPrison:
Int
)
extends
Product
with
Serializable
case class
PrisonersDilemmaState
(
p1Move:
Option
[
PrisonersDilemmaMove
]
,
p1Moved:
Boolean
,
p2Move:
Option
[
PrisonersDilemmaMove
]
)
extends
Product
with
Serializable
case class
Silence
()
extends
PrisonersDilemmaMove
with
Product
with
Serializable
Value Members
implicit
val
evGame
:
Game
[
PrisonersDilemma
,
PrisonersDilemmaState
,
PrisonersDilemmaOutcome
,
PrisonersDilemmaMove
,
PrisonersDilemmaState
,
Option
[
PrisonersDilemmaMove
]]
implicit
val
evGameIO
:
GameIO
[
PrisonersDilemma
,
PrisonersDilemmaOutcome
,
PrisonersDilemmaMove
,
PrisonersDilemmaState
,
Option
[
PrisonersDilemmaMove
]]
Inherited from
AnyRef
Inherited from
Any
Ungrouped
Prisoner's Dilemma
https://en.wikipedia.org/wiki/Prisoner%27s_dilemma