Runner

This project was actually an inspired one. I was watching a video where they explain how hard it is for a machine to understand shapes. And how far coding can help in shape recognition. I wasn't sure about shape recognition, but I thought about obstacle recognition. I wanted to develop a code where the computer will recognize where the obstacle and then jump over it. Like in the Mario or the google dinosaur game. Also this was one of the first codes where "animation" is used. At least it would appear so.

So here I have an array with random numbers which actually hold the value of the obstacle. And I made another array which goes through the map and then stores the value of the obstacles separately. This will now indicate when and where the '0' has to jump. For the "animation" part, I simply move the pointer ahead of the array and print the array with the old spot being normal again. Also I gave a small time delay to make it seem like its running. Finally we need to clear the screen every iteration to make it seem like only 1 output.

Deceptively simple code, but it does all of the job of clearing the screen, running 2 arrays, making random obstacles, and then identifying them, and then "animate" our character through this map. This is still unfinished, we can increase the map size, which is 100 for now, and even obstacles which was kept 10. Maybe even some special abilities like special jump can also be added. Or even generate a tougher map. The issue for now remains, how will I make the character "seem" like its actually jumping. Since the '0's' in the first array are already displayed.