Overview
Describe a match-three puzzle game to Gemini in Canvas, play the preview, fix problems by prompting or editing the code, and share the finished app through a public link.
Problem or Objective
More in Games and Simulations
AI Agents and Models
Tools and Integrations
- Tools
- Gemini
- Prerequisites
- To use Canvas you must be signed in to Gemini Apps. To add Gemini-powered features to an app you must be signed in and be 18 or over.
How It Works
Sign in to Gemini Apps and open Canvas from the tools below the text box. Write one detailed prompt that describes the game: board size, number of tile colours, how swaps and matches work, how cascades and scoring behave, what ends a level, and that it must work with both mouse and touch. Play the preview and note anything wrong, then ask Gemini to fix each issue in plain words, or open the Code view and edit it yourself. Use Show console to see errors from the preview. When the game plays properly, test it on a phone and a computer. To let friends play, use Share & export, create the public link and copy it into a message. Before sharing, remember that anyone with the public link can view and edit data associated with the app.
Implementation Workflow
Steps assembled from the agents, tools and prompt of this entry. Adapt them to your own setup.
- Choose the agentSet up Gemini.
- Connect the toolsConnect the tools this workflow relies on: Gemini.
- Check the prerequisitesTo use Canvas you must be signed in to Gemini Apps. To add Gemini-powered features to an app you must be signed in and be 18 or over.
- Gather your detailsCollect what the prompt asks for: Board size in tiles, Number of tile colours, What the player must do per level, Devices to support.
- Run the starter promptPaste the starter prompt below into Gemini and adapt it to your case.
- Check against the documentationCompare what you get with the documentation at support.google.com before you rely on it.
Practical Starter Prompt: Build a match-three game in Canvas
Fill the fields to adapt the prompt. Empty fields stay as visible [placeholders].
Build a match-three puzzle game that runs in the browser. Use a [Board size in tiles] board with [Number of tile colours] tile colours. A player swaps two neighbouring tiles; a swap is allowed only if it makes a line of three or more, matched tiles disappear, tiles above fall down and new ones fill from the top, with cascades scored too. Each level has [What the player must do per level]. Show the score and moves left, a restart button, and a short how-to-play screen. Use simple shapes and colours only, no outside images or sounds, and make it work with mouse and touch on [Devices to support].Play the preview, fix issues with follow-up prompts or in the Code view, and test on each device before you create a public link.
Expected Results and Benefits
This is a suggested workflow, not a reported result. The points below are what the cited documentation says the tools can do.
This is a suggested workflow, not a reported outcome. Google's help page says you can collaborate with Gemini in Canvas to create or edit an app, that you can ask for updates or edit the code directly, that the preview has a console for errors, and that an app can be shared through a public link. Nothing cited says how often a first prompt yields a playable game, so expect a few rounds of fixes.
Limitations and Considerations
Play the game yourself before sharing, and check that tiles, sounds and images you ask for are ones you are allowed to use. Google says anyone with a shareable public link can view and edit data associated with the app, so keep personal data out of it. Adding Gemini-powered features to an app requires being signed in and 18 or over. Google also warns that Gemini's responses might be inaccurate, so test the rules and scoring rather than trusting its description of the code. Results depend on your setup and were not independently reproduced by Top 200 Repos.
Sources
- Create docs, apps & more with Canvas - Computer - Gemini Apps Help (opens in a new tab)
Project documentation · support.google.com · Undated · Source checked 27 Nov 2026, 11:43 UTC
What this source supports
- You can collaborate with Gemini in Canvas to create or edit a doc, app, slides, or code.
- You can use the prompt text box to ask Gemini to make updates to your app or directly edit the code.
- To find errors and logs from the preview, at the top right of the Canvas panel, click Show console .
- Anyone with that public link can view and edit data associated with the app.
- Important: To add AI to your app, you must be signed in to Gemini Apps and be 18 or over.
- What is Gemini and how it works (opens in a new tab)
Project documentation · gemini.google · Undated · Source checked 26 Nov 2026, 17:27 UTC
What this source supports
- Accuracy : Gemini's responses might be inaccurate, especially when it's asked about complex or factual topics.