Aller au contenu
MINESWEEPER

How to Share Minesweeper in Google Classroom

Google Classroom does not embed anything: posts take text and attachments, and there is nowhere to paste an iframe. That still leaves two clean ways to get a playable board in front of a class — a link attachment students open in one click, or a Google Sites page with the game embedded, linked from your Classwork.

Time needed
About 1 minute
Menu path
Classwork > Create
Attachment
Link
Embed code
Not accepted
https://play-minesweeper.games/no-guess/

This opens the full game on a Beginner 9×9 board with no-guess mode switched on: every board can be solved by logic alone, which is what you want when thirty students start at once. It needs no account and works on Chromebooks, laptops and tablets.

The iframe embed code from the generator is only useful for the Google Sites route below. Pasted into a Classroom post, it does nothing.

Posting the game to your Classwork

  1. Decide between a plain link and a Google Site

    Google Classroom has no field that runs HTML, so the game can reach students in two ways: as a link they open in a new tab, or embedded in a Google Sites page that you then link from Classroom. A link takes one minute. The Google Site takes five, but students play on a page you control, with your instructions next to the board.

  2. Open the class and go to Classwork > Create

    Sign in at classroom.google.com, open the class, and click the Classwork tab. Click Create at the top and choose Material for an optional activity, or Assignment if you want it on students’ to-do lists with a due date.

  3. Write a title and short instructions

    Give the post a title such as "Logic warm-up: Minesweeper" and one line of instructions, for example: "Clear the board without guessing. Write down one rule you used." The instructions box takes text and simple formatting only; do not paste the iframe code here, because it would appear to students as a line of code.

  4. Attach the game with Link

    In the attachment options, choose Link (on an Assignment it sits under Attach; on a Material, click Add and then Link). Paste https://play-minesweeper.games/no-guess/ for the full no-guess game, or the address of your Google Site if you embedded the board there, and add it. Classroom shows the link as a card with the page title.

  5. Pick a topic and students, then Post or Schedule

    Optionally choose a Topic and limit the post to some students. Click Post to publish now, or use the arrow next to it to Schedule the post for the start of the lesson. Open the post in student view once to check that the link opens the board.

Why there is no embed option

Every other platform in this series has somewhere that accepts HTML — a Custom HTML block, an Embed code tab, a source-code view. Classroom does not. The instructions box takes text with bold, italic, underline and bullet lists; everything else arrives as an attachment card. The attachment types are Google Drive files, YouTube videos, links, uploaded files, and items you create in Docs, Slides, Sheets, Drawings or Forms.

So the question is not where to paste the code, but which kind of attachment to use:

  • Link — the quickest route. Students click the card and the game opens in a new tab. Nothing to maintain.
  • A Google Site, attached as a link — the board is embedded on a page you build, with your instructions, a timer or a worksheet link around it. Students still leave Classroom, but they land on your page instead of ours.

Classroom add-ons can show third-party content inside Classroom, but they need Google Workspace for Education Plus or the Teaching and Learning upgrade, an add-on your administrator has approved, and a developer who built one. This game is not a Classroom add-on, so a link is the supported route.

The Google Sites route: embed once, link from Classroom

If you want the board to sit inside your own page, build that page in Google Sites. It has a real embed-code field, and our Google Sites embed guide covers the exact path (Insert > Embed > Embed code) and how to size the box. For a class, paste this version, which turns on no-guess mode:

<iframe
  src="https://play-minesweeper.games/embed/?size=beginner&noguess=1"
  width="344"
  height="472"
  frameborder="0"
  style="border:0;max-width:100%"
  loading="lazy"
  title="Minesweeper Game"
  allow="clipboard-write"
></iframe>
<p style="font:12px/1.5 Tahoma,'MS Sans Serif',Geneva,sans-serif;color:#555555;margin:6px 0 0;max-width:344px">
  <a href="https://play-minesweeper.games/" style="color:#555555">play-minesweeper.games</a> — free Minesweeper, no download
</p>

The frame is 344 × 472 pixels, small enough for any Google Sites column and a Chromebook screen. Then:

  1. Click Publish in Google Sites. Restricting the site to your school's domain is fine, because students are signed in to their school accounts.
  2. Copy the published site address.
  3. Back in Classroom, attach that address with Link exactly as in the steps above.

A site is reusable: post the same link to every class each term, and change the board size or instructions in one place.

If something does not work

  • The iframe code shows up as text in the post. Expected — Classroom does not run HTML. Edit the post, delete the code and attach a link instead.
  • The link opens a "blocked" page. That is the school web filter. It applies to the link and to a Google Site embed alike. Ask IT to allow play-minesweeper.games, and see our notes on playing Minesweeper at school.
  • The Google Site shows an empty box where the game should be. The embed itself is blocked (filter again), or the address in the code starts with http:// instead of https://. Test on the school network, not at home.
  • The board is cut off on the Google Site. The embed box is smaller than the frame. Drag it to at least 344 × 482 pixels; the Google Sites guide explains why the box does not scale.
  • Students cannot open the Google Site. Check the publish settings. A site limited to your domain is invisible to accounts outside it, such as a student signed in with a personal Gmail account.

Using it in class

Our Minesweeper lesson for teachers is a 15-minute logic activity built around exactly this board: a warm-up, pair work and a short discussion of the rules students discover. Print the matching printable Minesweeper worksheets, or save them as a PDF from the print dialog and attach the file to the same Classroom post, so students who finish early, or who have no device, can solve the same kind of puzzle on paper. Every sheet has an answer key.

Google Classroom questions

Can I embed an iframe in Google Classroom?

No. Announcements, Materials and Assignments accept text with basic formatting plus attachments (Drive files, YouTube videos, links and uploads). There is no HTML or embed-code field, so an iframe pasted into the instructions shows up as plain text. Attach a link instead, or embed the game in a Google Sites page and attach that page.

Can students play without leaving Google Classroom?

Not inside the post itself. A link attachment opens the game in its own browser tab, and students come back to Classroom by closing that tab. If you want the board to sit next to your own instructions, put both on a Google Sites page and link that page from Classroom.

Which link should I post for a class?

https://play-minesweeper.games/no-guess/ opens a Beginner 9x9 board in no-guess mode, so every board can be cleared by logic and nobody loses to a coin flip. For a faster round, the Beginner page at /beginner/ deals a classic random board. Both need no account and no download.

Can I make it a graded assignment?

You can post it as an Assignment with points and a due date, but the game does not report scores back to Classroom. Ask students to type their time or a rule they discovered into a private comment, or mark the assignment Ungraded and use it as a warm-up. The printable worksheets work better when you need something to mark.

Do students need an account on the Minesweeper site?

No. Students just open the link. There are no ads, nothing to sign up for, and best times stay in the browser on that device. No-guess wins are never submitted to the public leaderboard.

The link opens but the page is blocked. What now?

That is the school web filter, not Classroom. Filters often block game sites by category on school Wi-Fi and managed Chromebooks, and the same address works at home. Ask your IT team to allow play-minesweeper.games; our notes on playing Minesweeper at school explain what usually works.

Everything on this page starts with a snippet from the generator: a game frame plus a one-line credit link that goes under it. Pick a board size and theme, decide whether to show the optional "Powered by" line inside the game, then copy the code.

Open the Minesweeper embed generator

Also useful: the Minesweeper widget generator and iframe options, how to play Minesweeper, and custom board sizes.