Fractal Diamond-Square Terrain Generation in Perl
The title is mostly for search engines for anyone who encounters this in the future.
I have, for no particular reason, decided to implement the fractal diamond-square terrain generation algorithm in Perl. Sometimes it's nice to just play.
$$$$$$$$$$$$$$$$$$$$$$$####################*********************!**!!!!!!!!!!!!! $$$$$$$$$$$$$$$$$$$$$$#####################****************************!!!!!!!!! $$$$$$$$$$$$$$$$$$$$$$###########################*#*##*#*####************!!!!!!! ####$####$#$#$$$$$$$$$##########################################**********!!!!!! ################$$$$$$$$##########################################**********!!!! #################$$$$$$$$$##########################################**********!! *###############$$$$$$$$$$$#########################$##$#$$$$########**********! ****#*############$$#$##$##########################$$$$$$$$$$$########********** ********#############################################$$$$$$$$#########********** *************#########################################$#$##$########************ !*!*************###################################################************* !!!!!!*!**********####*##*#*#######################################************* !!!!!!!!!!!*****************############$##########################************* =!!!!!!!!!!!!***************###########$$$##########################**#*#******* ====!!!!!!!!!!!!***********############$$$$$#############################******* ;=======!!=!!!!!!!**********##**#######$##############################********** ;;;;;;========!!!!!!!***************###############################************* ;;;;;;;;========!!!!!!!!*!*!**********############*##############************### ;;;;;;;;;;;=====!!!!!!!!!!!!!!!********#*#**************######*************##### :;;;;;;;;;;======!!!!!!!!!!!!!!!***************************#*#*********######### :::;;;;;;;;;======!!!!!!!!!!!!!!!*************************************########## ::::::;;;;;;=======!!!!!!!!!!!!!!!*!*******************************############# ~:::::;;;;;;;;=========!!=!!!!!!!!!!!!!*!***************************############ ~~::::::;;;;;;;;=;===========!=!=!!!!!!!!!!!!!!!*********************#*######### ~~~~:::::::;;;;;;;;=;===============!!!!!!!!!!!!!!!*********************######## ~~~~~~:::::::;;;;;;;;;;;;;=;==========!!!!!!!!!!!!!*!*******************######## -~~~~~~~::::::::::;;;;;;;;;;;;;==========!=!!!!!!!!!!!!*****************######## ----~~~~~~~::::::::::;;;;;;;;;;;;=============!!!!!!!!!***************########## ------~~~~~~~~:~:::::::;;;;;;;;;;;;;============!!!!!!!!**************#######$$$ ,--------~-~~~~~~~:::::::::::;;;;;;;;;==========!!!!!!!!!***********#########$$$