It's now time for the final project where we put everything into practice.
Now, before I reveal the next message, just a word of warning.
It has explicit content. If you are hungry,
if you haven't eaten, if you are intermittent fasting like me,
it might be worth skipping over the next image.
Let us describe what we're going to do
in this project, we're going to be baking some cookies.
We're going to be playing the cookie clicker game,
but we're not going to do it normally like a normal person.
We're not going to go and click on our cookies and tirelessly end up with
repetitive strain injury and play the game as if we're a human. No,
we're going to play it using a Python bot created with selenium.
So recently I've been looking on Reddit and there's a lot of posts talking about
how addictive this cookie clicker game is. Why is this game
so addicting, cookie clicker ruined my life. And when you think about it,
it's such a simple game.
All it is is a big giant cookie, you click on it as fast as you can.
And once you've gotten a number of cookies,
then you can buy certain upgrades like a cursor,
which will click on the cookie automatically for you.
And if you get even more cookies, you can end up buying other things.
For example, once you have a hundred cookies,
you can by a grandma which will bake more cookies for you.
But we're not going to do it manually because I can physically not click at this
rate. We're going to get our bot to decide which add-ons to
buy that makes sense, and to buy as many of these add ons as we have money,
and we're going to get all bots to continuously click the cookie to bake even
more cookies.
So the goal is we're trying to max out on this cookies per second rating,
because the more of these add ons that you buy,
the more often that you click on the cookie,
the more cookies per seconds you can bake.
So basically what we want to do is to not even touch our mouse and use selenium
to play this game for us.
And we're going to try and get some high scores by cheating basically.
So the goal is to max out the cookies per second,
and we're going to be playing this game by clicking on this cookie automatically
using selenium.
And once we've clicked for five seconds,
we're going to see what is the highest value add on we can by,
and then we'll buy it to help us with the game.
So the goal at the end of the day is we're going to run the program for five
minutes. And at the end of the five minutes,
we're going to check our cookies per second.
And we're going to compete with each other on that number because of course you
can get selenium to play the game in different ways. So what I recommend first
before you get started with the project is just to head over to this link
which is in the course resources,
and actually play the game first as a human so that you can understand how it
works and see how these add ons really help us improve our rate of baking
cookies. Pause the video now, head over to this link,
play the game for maybe five minutes and then head over to the next lesson where
there's the full instructions for how to complete this challenge.