From the course: Python for Non-Programmers
Unlock the full course today
Join today to access over 25,200 courses taught by industry experts.
Game loop - Python Tutorial
From the course: Python for Non-Programmers
Game loop
- [Instructor] Well, congratulations, you've made it to the final project of the course! We've learned so much Python, and it's going to be awesome to wrap it all together here in this final project. So we'll be creating a number guessing game. The idea is that our Python code will pick a random number between one and a hundred, and then the user will try and guess it. And each time that they guess we'll tell them either, Hey, you got to guess higher next time, or you got to get lower. They'll give them some clue about where to guess the next time, and eventually once they get it right, we'll say, hey, you got the right answer, which was 42. And it took you seven tries to get there. That way they have this little score to say, okay, next time I'm going to try and get it down to six, or five, or four, whatever. So in order for us to create this project, we have an interesting situation. So let's just start building this and…