So, for the past few days, I have been attempting to literally create chaos in Game Maker.
So what is chaos exactly?Well, it is a program with one object that randomizes a string and then, if it is valid, executes it.Sounds simple right? Why do it?Well, it isn't simple, first of all. There are over 1,000,000 possible permutations, and over half of them are invalid!So why do this? Well, because it is interesting. What would happen in a chaotic state. There is essentially an equal chance for anything to occur (assuming GM can do it). What would happen? It might make an awesome video game level, AI, weird visual effects, nothing, or (if you ran it in GM Pro that allows external file editing) a virus. The results are limitless.Currently the 'debugger' uses me to check it. I simply click yes or no on whether it is valid, and it records my answer (granted it resets every time I run it).I have recently considered having two types of random generated code to limit wasteful combinations:1. Creating another object.2. Setting another object's event code to a ligit GML String.This would limit combinations that do nothing, and would probably increase the amount of chaos in the simulation.
Also, I found this. Not as cool as it sounds…
It takes a lot longer since no one in the game knows what they're doing. They're also inherently exploitative because they don't give a fuck about playing fairly. But since you don't have to play… fair point.
Well, I would make a debugger; however, I haven't quite figured that out yet. As for infinite permeantations… There are not. There are exactly 256^51 - 1 right now.
Guys it's not infinite it's just more than a googol
I've been trying to get this monkey to type the entire works of Shakespeare for ages.
Mega: 44 digits isn't that bad. However, this isn't an experiment to make something interesting, its to see what would happen with chaos. I can your point though. That is a lot of combinations; however, if I make multiple objects executing random code, then the chance of actual GML will go up. Also, I can determine that making a code checker is possible, since the GM Debugger flags incorrect code. If it didn't, Chaos would have easily fried my pc. Then again, almost /any/ incorrect GML could fry your pc if there was no bugger!
EDIT: Oh, there are more digits. I didn't know this thing scrolls sideways. That is weird.