Just watch! The dinosaurs at first have no idea what to do, but are forced to either jump, duck, or remain idle. Which ever one of them is the most successful and survives longest carries on their "genes" (more or less a simple integer string) for their descendants to follow. For now, they all operate on the best ancestor's moves but ignore the last few so they don't encounter the same obstacle as the last did.
--Updates-- 2-20-19 - Initial development and release 2-21-19 - Descendants don't always follow the best pathway! - Added 7 dinosaurs! -Improvements to genetic algorithm. ⬇⬇⬇⬇⬇⬇⬇⬇ Ideas from YouTuber 'Code Bullet' https://www.youtube.com/channel/UC0e3QhIYukixgh5VVpKHH9Q Artwork ripped from my original Google Dino Remake and Google