Share your repls and programming experiences

← Back to all posts
Procedural ASCII Map
PXY (43)

Just type in a map size and go from there!

Because of how the map is printed out, I recommend a map size > 75 so the screen displays properly. Fullscreen is also suggested.

Commentshotnewtop
DynamicSquid (3229)

Nice! I also made a similar project using the same method, but your's looks much cleaner!

PXY (43)

It's because I'm simply better. Really, though, yours uses 9-sided cellular automaton compared to my 4, so it produced a much more seamless result. I might give it a go on version 4 :o @DynamicSquid

HahaYes (1176)

@PXY great, more cocky programmers

DynamicSquid (3229)

@HahaYes eh, I didn't take any offense, it's fine

HahaYes (1176)

@DynamicSquid lol cocky programmers are everywhere

Jakman (439)

@HahaYes we gotta put them down.

PXY (43)

was joking, forgot to add the 'just' kidding part which is my bad @DynamicSquid @HahaYes

DynamicSquid (3229)

@PXY no, it's fine. I knew you were joking

IronHammerPVP (20)

In a world where no mans gone before there was this continent but one man accidentally fell to here and had to survive "Oh no" said the man "I have tripped to this unknown land" now he must S U R V I V E

PXY (43)

Your game idea isn't far off from what I've been planning with this :o @IronHammerPVP

Leroy01010 (159)

i put 1000 and it just froze

PXY (43)

Due to the processing power from repl.it's servers, sizes over 500 take at least 6 minutes to load. I'm working on fixing this, and I've also solved the issues with large maps appearing weirdly. :) @Leroy01010

Jakman (439)

Nice. Me likey logistic randomization.

PXY (43)

Who needs seeds anyways? @Jakman

HahaYes (1176)

always like the fact that pyton was built on c++

SixBeeps (2860)

@HahaYes Nah man it was built on a computer

CodingRobot12 (186)

This is a nice project and very cool. Do you want me to add to my upcoming search engine?

PXY (43)

Absolutely! I appreciate the gesture, and I'll make sure to check it out. @CodingRobot12

DynamicSquid (3229)

@CodingRobot12 when's your engine coming out btw?

SixBeeps (2860)

I like this quite a bit! Although, I think it really shines when you do smaller maps. Larger maps tend to be a bit more choppy, as if they were pieces of land just sprinkled on.

I see that you're using Cellular Automata for this, which is a neat concept. Although, I would have maybe used Voronoi Noise, because that tends to make some cool geometric shapes that you can then combine to make land-ish looking splotches (I might actually try doing this :thinking:)

PXY (43)

I appreciate the suggestion! Next project will definitely use it. @SixBeeps

EpicGamer007 (391)

@SixBeeps, What is Cellular Automata and Voronoi noise?

PXY (43)

Voronoi noise is a particular type of noise, which is an algorithmic series that creates semi-random values that are connected to the values around it. You can look up 'noise function' for a bit more detail. Cellular Automata is another function which assesses tiles to create smoother terrain. For my terrain, the rule is that if less than three of the four surrounding tiles are a different color, there is a 1 in 3 chance that tile will change color. @AbhayBhat

EpicGamer007 (391)

@PXY, Oh cool. I created something like @ DynamicSquid's Terrain Generator and the algorithm for that is when all the tiles around a generated tile are a different color, change it to be that color