## Rock Paper Scissors Lizard Spock

This environment is part of the classic environments. Please read that page first for general information.

Name |
Value |

Actions |
Discrete |

Agents |
2 |

Parallel API |
Yes |

Manual Control |
No |

Action Shape |
Discrete(5) |

Action Values |
Discrete(5) |

Observation Shape |
Discrete(6) |

Observation Values |
Discrete(6) |

Import |
`from pettingzoo.classic import rpsls_v1` |

Agents |
`agents= ['player_0', 'player_1']` |

#### Agent Environment Cycle

## Rock Paper Scissors Lizard Spock

Rock Paper Scissors Lizard Spock is a variation of the traditional Rock Paper Scissors game, where the choices lizard and Spock are added as well. The interactions between Rock, Paper and Scissor are the same as the original with Rock beating scissors, scissors beating paper and paper beating rock. However, the new choices interact as follows: rock crushes lizard, lizard poisons Spock, Spock smashes scissors, scissors beats lizard, lizard eats paper, paper beats Spock, and Spock destroys rock. As is in the original, each player reveal their choice at the same time, at which point the winner is determined.

#### Observation Space

The observation is the last opponent action and its space is a scalar value with 6 possible values. Since both players reveal their choices at the same time, the observation is None until both players have acted. Therefore, 5 represents no action taken yet. Rock is represented with 0, paper with 1, scissors with 2, lizard with 3, and Spock with 4.

Value |
Observation |

0 |
Rock |

1 |
Paper |

2 |
Scissors |

3 |
Lizard |

4 |
Spock |

5 |
None |

### Action Space

The action space is a scalar value with 5 possible values. The values are encoded as follows: Rock is 0, paper is 1, scissors is 2, lizard is 3, and Spock is 4.

Value |
Action |

0 |
Rock |

1 |
Paper |

2 |
Scissors |

3 |
Lizard |

4 |
Spock |

#### Rewards

If the game ends in a draw, both players will receive a reward of 0.