watch as this state-of-the-art-I-did-in-grade-2 A.I. works it's kind of hard somewhat it's trying-est to beat the world's hardest (and longest) game. the A.I. frequently gets stuck and doesn't know how to beat a level so if it dies 20 times on a level it'll make a new one. this A.I. can beat the game in 140-300 hours. see you in 6 days! I've gotten the A.I. to about level 1530. see if you can get it any further.
to make the AI I just put a bunch of boxes around it that when they touch red would tell the AI how to move. after many iterations (I cant even count how many?) this seems to be the most stable A.I. yet. how the A.I. works first off, there's a variable called col, which is set to one every time one of three boxes below the A.I. touches the ground. when the A.I. jumps, it's set to one. the A.I. can only jump when it's one. this prevents the A.I. from just flying. second, three boxes below the A.I. make sure that (only when it's falling) it worries about wether it's gonna hit red. based on the box that the red is touching it'll move in a direction. lastly; one large box infront of the A.I. will tell it to jump when it gets to a red spot infront of it. yes, I could've just timed me beating a couple levels and made an incremental variable to know how long it'd take on average to win the game but this is *cooler*