Obfuscating BlitzMAX programs

BlitzMax Forums/BlitzMax Programming/Obfuscating BlitzMAX programs

TomToad(Posted 2010) [#1]
Here is a little program I wrote. See if you can figure out what it does before running it.

It sort of reminds me of the Obfuscated C Code that gets published every now and then, like those on this site
http://www0.us.ioccc.org/main.html
Maybe we could have an Obfuscated blitzMAX Code Contest. :)


TomToad(Posted 2010) [#2]
Here is a nice one :)



Warpy(Posted 2010) [#3]
a haiku ..

Program aborting

Close all that you have worked on

You ask far too much

Function a(haiku)
	Graphics are,over,rated
End Function

Function program(aborting)
	DrawText "ABORTING",aborting,aborting
End Function

Function close(all)
	you rogue ..
End Function

Function that(you(YOU))
	If you loved me
End Function

Function have(worked)
	you would ..
End Function

Function on()
	close this program now
End Function

Function you(ask)
	Assert that, "you love me" And I ..
	will
End Function

Function far(too)
	Flip out
End Function

Function much()
	Delay awhile
End Function

Function loved(me)
	Repeat after me ..
	Until you die
End Function

Function will()
	program done
End Function

Global now=13,are=300,over=50,done=26,awhile=2000
Global after(we)=close
Global die()=much


It would've been better if I'd been able to interleave the function definitions and contents coherently ...


Scaremonger(Posted 2010) [#4]
@Warpy - Thats cool; I'm impressed...


Matt Merkulov(Posted 2010) [#5]
Scaremonger, have you abandoned your BlitzMax game framework? I'd like to have a copy (MattMerkulov@...) if you don't mind.