Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sokoban support #1234

Closed
kostmo opened this issue Apr 29, 2023 · 1 comment · Fixed by #1235
Closed

Sokoban support #1234

kostmo opened this issue Apr 29, 2023 · 1 comment · Fixed by #1235
Labels
Z-Feature A new feature to be added to the game.

Comments

@kostmo
Copy link
Member

kostmo commented Apr 29, 2023

Swarm already supports most of the elements required to implement Sokoban. All that is really needed now is a push command.

The push command would have the same type signature as move. Both the robot and the entity directly in front of it will move forward by one space, so long as no entity already occupies the destination space. An entity can be pushed if it is portable, even if that entity is unwalkable.

@kostmo kostmo added the Z-Feature A new feature to be added to the game. label Apr 29, 2023
@byorgey
Copy link
Member

byorgey commented Apr 29, 2023

Great idea! Maybe tank treads could provide push? Like in order to push you need more power/traction than what you need just to move.

@mergify mergify bot closed this as completed in #1235 Apr 29, 2023
mergify bot pushed a commit that referenced this issue Apr 29, 2023
Closes #1234

A `"dozer blade"` is defined locally to provide `push` capability.  To decouple this PR from bikeshedding, will defer the definition of a global entity that offers `push` capability to another PR.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Z-Feature A new feature to be added to the game.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants