# How to Make a Grid Reveal Puzzle (Minesweeper Style) > Generate a 2D grid in a list, place hidden hazards randomly, and count neighboring hazards. How to Make a Grid Reveal Puzzle (Minesweeper Style) — Generate a 2D grid in a list, place hidden hazards randomly, and count neighboring hazards. ## Core approach Represent an 8×8 board in a 64-item list and compute neighbor counts (0–8) for each safe tile. - Convert (row, col) to list index with ((row - 1) * width + col). - Use costumes 0–8 plus Flag and Hidden for clean tile visuals. - Win when all non-mine tiles are revealed. ## Pro tip & next steps Check row boundaries carefully so right-edge cells do not wrap to the next row. - [All Project Tutorials](/en/projects/): Browse more English guides in this section. - [Scratch Block Dictionary](/en/dictionary/): Look up any Scratch 3.0 block with examples. Updated: 2026-11-23 Author: [Takamasa Suzuki](https://scratch.gmnavi.jp/about/author/) Japanese Edition: https://scratch.gmnavi.jp/projects/minesweeper/ [Scratch Daizen (English)](https://scratch.gmnavi.jp/en/)