Gratis å bruke, uten konto

Labyrintgenerator

Lag en ny labyrint, følg en generert rute eller prøv å finne veien til utgangen selv. Velg størrelse og startverdi, og lagre deretter en ren SVG-kopi.

Velg oddetallsmål fra 9 til 41 kolonner og 9 til 31 rader. En seed gjenskaper det samme oppsettet.

Labyrintbrett

Trekk
0
Slik spiller du

Bruk piltastene eller W, A, S, D i labyrinten, eller trykk på retningsknappene. Gå til den rosa utgangen. «Vis rute» viser en vei. «Lag ny» oppretter en ny labyrint. «Eksporter» laster ned labyrinten som SVG.

Hvordan fungerer labyrintfrøet?

Samme seed og rutenettstørrelse lager alltid den samme labyrinten. Endre seed-verdien for å lage et annet oppsett, eller la feltet stå tomt for en tilfeldig seed.

Veiledning

Slik bruker du Labyrintgenerator

The Maze Generator builds a maze from a width, a height and an optional seed. You can walk through it with the arrow keys, W, A, S, D or the on-screen buttons, reveal the route to the exit, and download the maze as an SVG file. Each maze has exactly one route from the entrance to the exit.

Slik gjør du

  1. Set the width and height as odd numbers, from 9 to 41 columns and 9 to 31 rows. Type a seed if you want to be able to recreate the same maze later, or leave it empty.
  2. Press Generate maze, then move with the arrow keys or W, A, S, D, or tap the direction buttons. The player starts at the S square at the top and must reach the E square at the bottom.
  3. Press Show route to highlight the way out, Restart to return to the entrance, or Download SVG to save a clean picture of the maze.

Eksempler

A small 9 by 9 maze with the seed demo

Du skriver inn
bredde
9
høyde
9
startverdi
demo
Du får
rutenett
#S#######; # # #; # # ### #; # # # #; ##### # #; # # #; # # #####; # #; #######E#
trekk på korteste rute
26

Walls are #, open squares are blanks, S is the entrance on the top edge and E is the exit on the bottom edge. The route from S to E takes 26 moves, and in this kind of maze it is the only route.

Kjørt med verktøyets egen kode.

Another seed, or the same one again

Du skriver inn
bredde
9
høyde
9
startverdi
other
Du får
forskjellig fra demo
ja
trekk på korteste rute
18
samme startverdi igjen
identical grid

Changing the seed from demo to other gives a different layout, with an 18-move route. Entering demo again with 9 by 9 recreates the first maze square for square. The seed and the size together decide the maze.

Kjørt med verktøyets egen kode.

A size the tool refuses

Du skriver inn
bredde
10
høyde
9
startverdi
Du får
melding
Enter odd maze sizes in the supported range.

Even sizes are rejected because walls and passages alternate on the grid. A width of 43 or a height of 33 is rejected too. A seed longer than 40 characters is also rejected, and the old maze stays on screen.

Kjørt med verktøyets egen kode.

Når det er nyttig

  • Make a printable puzzle for a classroom, a party or a rainy afternoon by saving the SVG.
  • Test a maze-solving program with a layout you can recreate exactly by typing the same seed.
  • Play a quick keyboard maze game on a phone using the direction buttons.

Begrensninger

  • Sizes must be odd numbers, with a width of 9 to 41 and a height of 9 to 31, and the seed can have at most 40 characters. The entrance is always on the top edge and the exit on the bottom edge.
  • There is no difficulty setting, no loops or several routes, and no hidden-wall styles. Every maze is built the same way, and only the size and the seed change it.
  • The SVG download uses 12-pixel squares, so a 9 by 9 maze is 108 by 108 pixels. There is no PNG or PDF export and no option to change colors, so scale or print the SVG from another program.

Tips

  • Write down the seed together with the width and height if you like a maze, because all three are needed to get it back.
  • Click the maze board first so the arrow keys move the player instead of scrolling the page.
  • Try the maze by hand before you press Show route, and use Restart to try a faster path.

Vanlige spørsmål

What does the seed do?

The seed starts the random choices used to carve the maze. The same seed with the same width and height always gives the same maze. If you leave the box empty, a random seed is picked and shown.

Can I make the same maze again?

Yes. Type the same seed and the same width and height, then press Generate maze. The new maze matches the old one exactly. If any of the three values changes, you will usually get a different layout.

Is there only one way through the maze?

Yes. The maze is carved so that every open square connects to the others without loops, which leaves exactly one route between any two squares. Show route draws that single path from S to E.

Why must the width and height be odd?

Rooms sit on odd positions and the walls between them sit on even ones. An even size would leave a double wall at one edge, so the tool asks for odd values between the supported limits.

How do I save or print the maze?

Press Download SVG. The file name includes the size and the seed. Open it in a browser or a drawing program, then print it or edit it there. Only the maze is saved, not your moves or the route.

Is the maze sent to a server?

No. Making, solving, playing and exporting all happen in your browser, and the page says nothing is uploaded and no account is needed. Closing the page loses the maze unless you saved the SVG or noted the seed.

Hvordan fungerer labyrintfrøet?

Samme seed og rutenettstørrelse lager alltid den samme labyrinten. Endre seed-verdien for å lage et annet oppsett, eller la feltet stå tomt for en tilfeldig seed.

Er labyrintgeneratoren gratis og lokal?

Ja. Oppretting, løsing, spilling og SVG-eksport av labyrinten kjøres i denne nettleseren. Ingenting lastes opp, og ingen konto er nødvendig.

Kan jeg lage den samme labyrinten igjen?

Ja. Bruk samme seed, bredde og høyde for å gjenskape oppsettet.

Kan jeg skrive ut eller redigere en generert labyrint?

Last ned SVG-filen for å skrive den ut eller åpne den i et SVG-redigeringsprogram. Labyrinten genereres lokalt i nettleseren din.