Posts

I made the Chrome Dino Game Eye-Blinked Controlled! ๐Ÿ‘€

avatar of @aicoding
25
@aicoding
ยท
0 views
ยท
1 min read

AUTOMATION IS YOUR BEST FRIEND!!!!!!

I had this idea of making something fun with AI and Coding!

I made a program that allows you to play the Chrome Dino Game fully automated to be controlled when you blink. What what? YES!

How does it work? Well, pretty simple. I guess you all might have heard about this game. Basically the Dinosaur Game is a built-in browser game in the Google Chrome web browser, which you can access in offline mode and the idea is that you guide the dinosaur to jump over some obstacles in order to achieve higher score. You can basically do this by just using the space bar to jump.

Well, the thing is... I am really passionate about automation. I work as a Data Scientist now but I am passionate about Software Engineering and I have worked as a Software Engineer before. One of the frameworks I started loving at work is called Selenium, which basically allows you to do automated testing for web applications. It is built in top of almost any programming language, but I love using it with Python!

I used selenium to automate the game and on top of that I used my skills of Data Scientist + Computer Vision Engineering to built the eye-controlled part using the well known framework OpenCV.

Here is the video on how to play:

https://www.youtube.com/watch?v=22EVEuRsIlc

And here is the source code!

https://github.com/coding-ai/eyeBlinkedTREX

Let me know what you think!