Start from the template
Create your repository
Section titled “Create your repository”A repository is your game’s home on GitHub. It holds the game’s code and files.
- Sign in to GitHub.
- Open the game starter.
- Make your own copy of it:
- Click the green Use this template button.
- Click Create a new repository.
- Give your game a name, in small letters with dashes instead of spaces:
dragon-dash. You can change it later. - Choose who can see the code:
- Choose Public.
- Click Create repository.
Put it on the web
Section titled “Put it on the web”- In your new repository, click the Settings tab at the top. Its icon is a cog.
- In the list on the left, click Pages.
- Under Build and deployment, set Source to GitHub Actions.
- Publish the game for the first time:
- Click the Actions tab at the top.
- On the left, click Deploy to GitHub Pages.
- On the right, click Run workflow. A small box opens.
- In that box, click the green Run workflow button.
- Wait a minute or two. When the dot next to the run turns green, your game is on the web.
Your game is now at:
https://<your-github-name>.github.io/<game-name>/Open that address. You see your game’s empty home page. It shows the game’s name, who is playing and a Play together button. It is empty because you have not asked for a game yet. To check that it works, try Play together on two devices.
Next: Connect Claude to your game.