This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
jesusthekiller's profile picture

[Game] Nano Maze - Mazes in CC

Started by jesusthekiller, 14 June 2013 - 07:48 AM
jesusthekiller #1
Posted 14 June 2013 - 09:48 AM

Mazes in CC!



Hi all, just wrote it, it includes custom maze generator (Depth-First Search algorithm), supports up to 99 x 99 mazes (can be easily hacked to make almost infinite mazes, limited due to "too long w/o yielding" error). And, nope, it turned up totally not nano - 330+ lines :P/>

Non Advanced computers support!


Screens:

Spoiler
















Download:

pastebin get m6WFB8D3 maze


License (GNU GPL):

Spoiler



Maze
Copyright © 2013 Jesusthekiller

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
jesusthekiller #2
Posted 14 June 2013 - 09:56 AM
Fixed "Goal: Setp on" typo… :mellow:/>
superaxander #3
Posted 14 June 2013 - 10:00 AM
Really cool! Nice game!

EDIT: the logo is kinda unreadable
Pinkishu #4
Posted 14 June 2013 - 10:50 AM
Really cool! Nice game!

EDIT: the logo is kinda unreadable

Seems readable if you know what it means xD
theoriginalbit #5
Posted 14 June 2013 - 11:48 AM
Looks good! :)/>

The wrong time isn't a CCDesk derp tho, it is a jesusthekiller derp…

Line 311
local ntime = os.time()

Nope.
local ntime = os.clock()

I made a mistake like this with the game I posted yesterday, so I knew exactly what to look for :P/>

EDIT: Also just a term fix "Deep-First Search algorithm" I think you mean "Depth-First Search algorithm", no biggy, just thought I'd point it out ;)/>
Edited on 14 June 2013 - 09:51 AM
jesusthekiller #6
Posted 14 June 2013 - 11:54 AM
Jesusthekiller as always brings to you an daily dose of derpiness ;)/>

Fixing bugs right now


EDIT: the logo is kinda unreadable

It was meant to be 3px font (nano maze - nano text), but I got better idea :)/>


1.2 Out
Fixes time bug and adds new logo!
svdragster #7
Posted 14 June 2013 - 04:07 PM
I don't know but.. I always read Nano N*zi …
PixelToast #8
Posted 14 June 2013 - 05:59 PM
this is prim's algorithm not depth first
jesusthekiller #9
Posted 15 June 2013 - 12:31 AM
http://www.mazeworks.com/mazegen/mazetut/index.htm

And it is DFS…

Anywas,
Check out 3D version of Maze :D/>
PixelToast #10
Posted 15 June 2013 - 12:53 AM
your maze generation algorithm is wrong somehow
its supposed to look like this:

not this:
jesusthekiller #11
Posted 15 June 2013 - 02:00 AM
Oh? Hmm.
Gonna have a look when I'll be back.
Dacle00 #12
Posted 19 November 2013 - 12:55 PM
Thanks for making the maze2d program! It looks awesome! I loved finding Maze2d disk on our SMP Minecraft server! Ran and hopped all the way back to base, to plug it in! .. but i found a bug.
  • Found the disk
  • copied two files to ComputerCraft computer (Maze2d and Maze3d)
  • ran Maze2d.
  • Generated maze size 5.
  • SERVER CRASHED, Kicked everyone out when I moved into the square next to the finish/goal.
Has this bug been reported/addressed?

We are running
maze2d version: 1.2
from ComputerCraft version: 1.57
Lyqyd #13
Posted 19 November 2013 - 02:22 PM
The creator of this program was banned.
TheOddByte #14
Posted 19 November 2013 - 02:44 PM
The creator of this program was banned.
Just one question.. Why was he banned? O_o
I had no clue he'd been banned.
Lyqyd #15
Posted 19 November 2013 - 02:56 PM
His actions caused his presence to become unwelcome here, so he was removed.