DEV Community

Cover image for Sokoban Action
Darshan Sen
Darshan Sen

Posted on

Sokoban Action

My Workflow

Sokoban Action

Hi everyone! This is the first time I'm making a GitHub Action and this is also my first post here!

When I came to know about the GitHub Actions Hackathon, I had no idea what an Action was or how it worked. As I was scrolling through the comments of the Hackathon Announcement post, I came across this:

I'm looking forward to seeing what the community comes up with for this contest across all categories, but especially for Wacky Wildcards. You can get pretty dang creative here. I'm a fan of this Profile Readme where you can actually play chess (powered by GitHub Actions).

So, I visited the link and found this amazing project!

Tim's Community Chess Tournament

Game is in progress. This is open to ANYONE to play the next move. That's the point. 👋 It's your turn! Move a white (hollow) piece.

A B C D E F G H
8
7
6
5
4
3
2
1

WHITE (hollow): It's your move... to choose where to move...

FROM TO - just click one of the links :)
A1 A2 , B1
A3 B1 , B5 , C2 , C4
A4 A5
C1 B2 , D2 , E3 , F4 , G5 , H6
C3 C4
D1 B3 , C2 , D2 , D3 , E1
E2 E3 , E4
F1 E1
F3 D2 , E1 , E5 , G5 , H4
G1 H1
G2 H1 , H3
H2 H3 , H4

Ask a friend to take the next move: Share on Twitter...

How this works

When you click a link, it…

I was surprised by the capabilities of GitHub Actions. So, I went through the docs and took the awesome courses at GitHub Learning Lab to get a good grip on GitHub Actions.

Finally, I decided upon making my own game using GitHub Actions. I implemented Sokoban, which is a classic box-pushing game.

The game takes place right in the README.md. It has a table representing the game board, furnished with the game items, like this:

Game board

Your character is the Octocat. To play the game, you are supposed to push each box to a goal using the given controls.

When you click on the controls, it opens a new issue with a text to trigger the workflow. After you submit the issue, the action starts running and updates the board and replies to your issue like this:

Reply

Now push! 😃

Submission Category:

Wacky Wildcards

Yaml File or Link to Code

GitHub logo RaisinTen / sokoban-action

Sokoban game using GitHub Actions 🤖

Sokoban Action

⬆️ ⬇️ ➡️ ⬅️ ↩️

Instructions

Sokoban is a game where you are supposed to push each box to a goal.

Items

Name Item Description
Octocat You can move me in all 4 directions with ⬆️, ⬇️, ➡️, ⬅️ and go back a move with ↩️ when you are stuck.
Box I get pushed in the direction Octocat moves. When I am pushed into a goal, I turn blue!
Goal When a box is pushed into me, it turns blue!
Wall You can't push me.

Working

GitHub Actions

This game is made using GitHub Actions! When you click on the controls, it opens a new issue with a text to trigger the workflow. After you submit the issue, the action starts running and updates the board and replies to your issue.

To know more about this, check out the blog on !

Now push! 😃

Hope you enjoyed playing this game. 😊
Thank you for your time. 🙏

Top comments (6)

Collapse
 
paultrinankur profile image
Trinankur Paul

Awesome bro

Collapse
 
raisinten profile image
Darshan Sen

Thank you very much! ❤️

Collapse
 
shunjid profile image
Shunjid Rahman Showrov

Cool !

Collapse
 
raisinten profile image
Darshan Sen

Thank you! :)

Collapse
 
legacyftw profile image
Turbasu Chatterjee

Looks real fun haha!

Collapse
 
raisinten profile image
Darshan Sen

Thanks a lot! :)