Questions tagged [grid]
For challenges involving a grid.
390 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
14
votes
20
answers
1k
views
Sum of Neighbours in a 2D Grid
This is the 2D version of Sum of neighbours: Given a 2D grid of integers, output a grid of the same size where each cell contains the sum of the values of its orthogonal and diagonal neighbors (up to ...
18
votes
13
answers
1k
views
Make the Stars Shine
We've been given a map of the night sky. The map features three single characters, to match the theme, I'll refer to them O, X ...
7
votes
4
answers
649
views
Solve Star Battle (Queens) Puzzle
Queens is a puzzle that consists of a NxN grid divided into continuous color regions.
Your goal is to have exactly one queen (Q) in each row, column, and color region
Two queens cannot be adjacent to ...
10
votes
7
answers
1k
views
Solve Tango Puzzle
Tango is a puzzle that consists of a 6x6 grid partially filled with moons (M) and suns (S) and two lists of coordinate pairs, which we will call = and ...
25
votes
8
answers
1k
views
Index into a Fibonacci tiling
The Cartesian plane can be tiled with increasingly large squares like so:
This tiling can be generated by starting with a square of side length 1, placed at the origin ...
11
votes
5
answers
1k
views
Make a textual Paint-like program
Write a program/function that can help users make simple drawings by moving a cursor contained within a grid of characters, and by selecting which characters should be at a specific position.
Expected ...
14
votes
13
answers
1k
views
Simplified canvas builtin
related
The golfing languages 05AB1E and Vyxal have a "canvas" builtin that draws a string on a ASCII grid. In this challenge, you'll be implementing a simplified form of this.
You should ...
12
votes
6
answers
2k
views
9-16-25 2D Matrix
Given three grids and the sum of rows and columns of each grid, your task is:
Grid ×ばつ3\$: Fill the grid from \1ドル\$ to \9ドル\,ドル ensure no repeats within the grid.
Grid ×ばつ4\$: Fill the grid from \1ドル\...
user avatar
user123147
14
votes
12
answers
3k
views
3 Dimensional Minesweeper
3-Dimensional Minesweeper
I've been on a minesweeper kick for a while, but all the questions are for 2 dimensions (or that one in 1D). But 2D is 2 easy!
Challenge
Write the shortest code possible to ...
26
votes
6
answers
3k
views
How many cacti can I plant here?
Given a Minecraft terrain as a 2-dimensional array of integers or similar datastructure, determine the maximum number of cacti that can be planted on it.
The integers represent the height (y) of the ...
29
votes
5
answers
2k
views
Can I Clear The Grid?
I recently found this game and have been enjoying it. Basically, there is a grid of colored tiles and you act by clicking on empty spaces. When you click an empty space, the first tile (if any) in ...
26
votes
9
answers
3k
views
Is it a Valid Crossword Grid?
In crossword terminology, the grid is the region into which the crossword answers are inserted, consisting of white and black squares. The crossword answers, called entries, are inserted into ...
30
votes
10
answers
4k
views
Implement grambulation
Consider the following spiral of positive integers:
We now define grambulation as a binary operation \$\lozenge : \mathbb N \times \mathbb N \to \mathbb N\,ドル using this grid. Some example inputs and ...
8
votes
5
answers
553
views
Simultaneously solve N-queens and no-3-in-line
An intriguing MathsSE question asked if there were large N-queens solutions where no three queens lie on a line. That question's body included the unique ×ばつ4 solution up to symmetries
...
13
votes
19
answers
4k
views
Create a bingo card generator
Bingo
Bingo is a numbers game where players match randomly drawn numbers to the numbers on their cards. Each bingo card is a square grid with 25 spaces, and the columns of the grid are labeled with ...