TypeRacer Bot — Win Every Typing Race Without Typing

Udhav
5 min readApr 17, 2022

--

Get into Action by Sitting Still …

human interlacing with bot
human interlacing with bot

You might have heard about TypeRacer, most probably from your friends. If yes, then you would definitely be invited for a typing race. Even if you are not a master of typing, you can still surprise everyone by winning the race against experts… Just for fun…

Let’s first learn a little about TypeRacer.

What Is the Typeracer?

TypeRacer is a multiplayer online browser-based typing game. It was launched in 2008 that enables the users to increase their typing speed with fun and accuracy while competing with other users online. Alex Epshteyn, a programmer, created TypeRacer using Google Web Toolkit and the Open Social Application Programming Interface (API). TypeRacer was listed in PC Magazine’s “Top 100 Undiscovered Websites of 2008”.

What Made Me Develop the TypeRacer Bot?

Now the story begins that kept me motivated until I developed the TypeRacer bot. One day, one of my friends invited me to mess around on TypeRacer. “What is TypeRacer?” I asked to which she replied it’s a popular web-based game that allows you to test your typing skills where you can also set up a match among multiple players online.

I had to go against my friend but my bad… I lost the race *insert Michael Jordan crying meme * She was already a guru; her typing skills were at another level … literally god tier! We planned another match; a month might not be enough for practice to beat up her years of practice. Anyways, if she is superior at typing, Coding is my power …

I developed a TypeRacer bot that absolutely performs better than me and speeds up my typing speed more than 200 WPM (words per minute). It was not a game of hard work but smart work…

How Does the Bot Work?

TypeRacer Bot System Design
TypeRacer Bot System Design

A bot is constructed from sets of algorithms that enable it to accomplish its designed task. A bot is aimed to reduce human efforts. You would find different types of bots that are designed to perform different tasks.

The TypeRacer bot can merely be called a comical privy that can earn you a victory — in TypeRacer. It works simply by detecting the text inside image, converting it to string and starts typing.

The working of python bot is no more complicated. Firstly, you need to select the text you want the bot to type. For this using your mouse, just draw a invisible rectangle around the text. This will mark the coordinates of pixels in the selected area in your screen using pynput.mouse. Next a screenshot is captured of the selected pixels using pyscreenshot.grab. Stay cool, it is an in-place screenshot meaning it is not going to be saved locally and fill up your space.

The text inside image that is just captured from the screen will be detected by the bot as it acts as an input to pytesseract.image_to_string which will convert the image into text (string). Your text is now ready to be typed and amaze your competitors. The typing of the string is imitated by pynput.keyboard that iterates over each character present in the string and types it out. You can even tune how fast OR slow you want bot to type.

How to Use the TypeRacer Bot?

TypeRacer bot is endued with a facile usage. A few coding characters on the bot screen may make it look a bit complicated at the first sight. But let me emend you by explaining the simple usage of the bot.

You can easily start the bot by running a command python3 bot.py. Highlight the text that you need to type by drawing a rectangle around it with the help of your mouse. The python bot will scan the captured image. It will convert the image into text and show the text on the coding screen / terminal (where you are running the bot) that it’s going to type for you.

In the end, you just need to hit only a single key on your keyboard to make the bot type all the text automatically. It is the “Backspace” key which can be configured as per your requirement. It wins you the typing race at the speed of more than 200 words in a minute that will daze your online competitors.

Make your cursor ready at the start point of the race (the place where you need to type the text). Hit the backspace key jocosely and come into action by sitting still.

I will recommend you practice once before getting into the typing race. The TypeRacer bot allows you to practice as many times as you want to master the use of this python bot.

The Exciting Outcome

TypeRacer Bot Typing 200+ WPM in Practice Test

TypeRacer sets up against multiplayers online while the bot will offer you a ridiculous victory, incredible too — win at 200+ WPM. When TypeRacer gets a bit boring, TypeRacer bot will fill it up with excitement and fun.

I spent my month not in practice typing, but to trot out my resplendency of software development and coding skills. I developed the TypeRacer bot and on the fixed day got into the battlefield armed with my bot. The battle began. My TypeRacer bot did well and I won dazzlingly.

It was not cheating but a comic experience and a remarkable time we friends ever had.

Final Thoughts

TypeRacer Bot Winning Multi-player Online Race

Winning in the typing race was not a victory, in fact, but when I find my TypeRacer bot to be a source of fun and excitement to others, that looks victorious.

Here it ends but the fun starts with the bot. Explore my GitHub for bot code and check out my Portfolio to get into more exciting projects. Be curious and keep learning.

If you still have any questions, feel free to book some time with me udhav.com/contact. I am more than happy to help. If this post was helpful, please click the clap 👏 button below to show your support.

Sign up to discover human stories that deepen your understanding of the world.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Written by Udhav

Sr. SRE at Ease. Always building stuff. Endlessly curious. Rarely serious. Ask me anything: udhav.com/contact

Responses (3)

Write a response