Python for Absolute Beginners Transcripts
Chapter: Reading and writing files in Python
Lecture: Concept: Leader boards!
0:00 Now we're going to do something really fun.
0:01 We're going to have a leaderboard.
0:02 I mean that'll bring you back to any arcade game, right?
0:05 Here we are in some arcade, who knows where.
0:07 And you can see all the players who have played
0:09 and got high scores and whatnot.
0:11 So we're going to add that to our game.
0:13 And we're going to reuse a lot of the same ideas
0:15 but instead of reading files, which we'll also do, but
0:18 in addition to that I guess
0:20 we're going to be writing files.
0:21 We're going to have to be figuring out who the players are
0:23 what their scores are, save that back to some file
0:26 and so then when we play the game again
0:28 load the program again, we're going to be able to read that
0:30 and then carry on from there.
0:32 We'll actually see like
0:33 computers won seven rounds ever, and Michael's one
0:37 who knows one or zero, that's going to be how it goes for me.
0:40 But something like that.
0:41 We're going to build a leaderboard like this
0:42 and it's going to be a lot of fun.