Skip to content

Latest commit

 

History

History
45 lines (35 loc) · 2.42 KB

TwoPlayer.md

File metadata and controls

45 lines (35 loc) · 2.42 KB

Variation: Two Player

Example Game 1 Example Game 2 Example Game 3
Game 1 Game 2 Game 3

1. Idea

This variation contains two different players in the room, which both can be moved like a regular single player.

2. Rules

Every round the user can choose which avatar (player) should be used. The player is chosen by the action number. The action 0 is the NOOP action, which is a void step changing nothing in the environment. All actions in the range from 1 to 8 are for player 1, the green avatar. The remaining actions relate to player 2, the blue avatar.

Action (Player 1) ID Action (Player 2) ID
No Operation 0
P1: Push Up 1 P2: Push Up 9
P1: Push Down 2 P2: Push Down 10
P1: Push Left 3 P2: Push Left 11
P1: Push Right 4 P2: Push Right 12
P1: Move Up 5 P2: Move Up 13
P1: Move Down 6 P2: Move Down 14
P1: Move Left 7 P2: Move Left 15
P1: Move Right 8 P2: Move Right 16

The game ending rules as well as the reward are similar to regular game.

3. Room Configurations

Similar to the regular Sokoban there exist multiple room configurations. Of course all configurations can be rendered as TinyWorld.

Room Id Grid-Size Pixels #Boxes Example
TwoPlayer-Sokoban-v0 7x7 160x160 2 TwoPlayer-Sokoban-v0
TwoPlayer-Sokoban-v1 7x7 160x160 3 TwoPlayer-Sokoban-v1
TwoPlayer-Sokoban-v2 10x10 112x112 3 TwoPlayer-Sokoban-v2
TwoPlayer-Sokoban-v3 10x10 112x112 4 TwoPlayer-Sokoban-v3
TwoPlayer-Sokoban-v4 13x11 160x160 3 TwoPlayer-Sokoban-v4
TwoPlayer-Sokoban-v5 13x11 160x160 4 TwoPlayer-Sokoban-v5