loading...
Cover image for Sokoban Action

Sokoban Action

raisinten profile image Darshan Sen ・2 min read

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 black piece.

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

BLACK: It's your move... to choose where to move..

FROM TO - just click one of the links :)
D7 E6 , E8

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

How this works

When you click a link, it opens a GitHub Issue with the required pre-populated text. Just push "Create New Issue". That will trigger a GitHub Actions workflow that'll update my GitHub Profile with the new state of the board.

Notice a problem?

Raise an issue, and include the text cc @timburgan.

Last few moves, this game

Move Who
A7 to C7 @JRetza
H8 to H2 @yoursunny
…

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. 🙏

Posted on by:

raisinten profile

Darshan Sen

@raisinten

I am an Open Source Engineer and I love to program in C++ and JavaScript. :)

Discussion

markdown guide