not the best I didn't make the platformer click or tap to toggle showing variables if you just look up "Q learning" you'll probably find something more helpful then I am update you can chose if they are able to go left or not 1= yes, 0= no I recommend no for faster success
I don't make AIs or learning AIs so it sucks if you want to try different levels you have to restart the game in a nutshell the AI likes big numbers and they are given a big number if they do good, overtime they learn what to do to get big numbers and win. The rewards are: right, winning and winning quickly good, left and dying bad. you can remix and modify it but I would do something else with your time also more clones = faster learning rate extending the time it takes to add moves means the moves will be more perfected but it takes longer fastest link: https://turbowarp.org/1182477617?fps=60&turbo