WEBVTT

00:00.240 --> 00:04.920
It's now time for the final project where we put everything into practice.

00:05.200 --> 00:08.520
Now, before I reveal the next message, just a word of warning.

00:08.840 --> 00:11.120
It has explicit content.

00:11.440 --> 00:18.040
If you are hungry, if you haven't eaten, if you are intermittent fasting like me, it might be worth

00:18.040 --> 00:19.960
skipping over the next image.

00:22.000 --> 00:28.160
Oh, but it does describe what we're going to do in this project.

00:28.160 --> 00:30.080
We're going to be baking some cookies.

00:30.520 --> 00:36.120
We're going to be playing the Cookie Clicker game, but we're not going to do it normally like a normal

00:36.120 --> 00:41.040
person, we're not going to go and click on our cookies and tirelessly end up with repetitive strain

00:41.040 --> 00:44.400
injury and play the game as if we're a human.

00:44.560 --> 00:49.120
No, we're going to play it using a Python bot created with selenium.

00:49.600 --> 00:56.600
So recently I've been looking on Reddit and there's a lot of posts talking about how addictive this

00:56.640 --> 00:58.160
Cookie Clicker game is.

00:58.400 --> 01:00.080
Why is this game so addicting?

01:00.320 --> 01:05.960
Cookie clicker ruined my life, and when you think about it, it's such a simple game.

01:06.640 --> 01:09.040
All it is is a big giant cookie.

01:09.080 --> 01:16.790
You click on it as fast as you can and once you've gotten a number of cookies, then you can buy certain

01:16.830 --> 01:22.950
upgrades like a cursor, which will click on the cookie automatically for you.

01:23.310 --> 01:27.670
And if you get even more cookies, you can end up buying other things.

01:27.710 --> 01:30.030
For example, once you have 100 cookies.

01:32.590 --> 01:36.950
You can buy a grandma which will bake more cookies for you.

01:37.710 --> 01:43.950
But we're not going to do it manually because I can physically not click at this rate.

01:44.070 --> 01:49.990
We're going to get our bot to decide which add ons to buy that make sense, and to buy as many of these

01:50.030 --> 01:51.870
add ons as we have money.

01:52.150 --> 01:56.590
And we're going to get our bot to continuously click the cookie to bake even more cookies.

01:57.070 --> 02:03.630
So the goal is we're trying to max out on this cookies per second rating, because the more of these

02:03.870 --> 02:09.910
add ons that you buy, the more often that you click on the cookie, the more cookies per second you

02:09.910 --> 02:10.710
can bake.

02:11.750 --> 02:19.910
So basically what we want to do is to not even touch our mouse and use selenium to play this game for

02:19.910 --> 02:20.190
us.

02:20.230 --> 02:24.350
And we're going to try and get some high scores by cheating basically.

02:25.190 --> 02:30.030
So the goal is to max out the cookies per second.

02:30.390 --> 02:36.750
And we're going to be playing this game by clicking on this cookie automatically using selenium.

02:36.990 --> 02:45.230
And once we've clicked for five seconds, we're going to see what is the highest value add on we can

02:45.270 --> 02:45.670
buy.

02:45.830 --> 02:49.350
And then we'll buy it to help us with the game.

02:49.710 --> 02:55.270
So the goal at the end of the day is we're going to run the program for five minutes, and at the end

02:55.270 --> 03:01.390
of the five minutes, we're going to check our cookies per second, and we're going to compete with

03:01.390 --> 03:06.830
each other on that number, because of course, you can get selenium to play the game in different ways.

03:07.190 --> 03:13.430
So what I recommend first before you get started with the project is just to head over to this link,

03:13.430 --> 03:19.910
which is in the course resources and actually play the game first as a human so that you can understand

03:19.910 --> 03:26.510
how it works and see how these add ons really help us improve our rate of baking cookies.

03:27.350 --> 03:28.270
Pause the video.

03:28.270 --> 03:30.030
Now head over to this link.

03:30.070 --> 03:34.950
Play the game for maybe five minutes, and then head over to the next lesson where there's the full

03:34.950 --> 03:37.750
instructions for how to complete this challenge.
