Object-oriented Programming in Python: Create Your Own Adventure Game (Raspberry Pi Foundation)
Object-oriented Programming in Python: Create Your Own Adventure Game (Raspberry Pi Foundation) ranks 7th on the list of best online python courses. Object-oriented programming is a programming paradigm that prioritizes objects and data over actions and logic. This online course will teach you the fundamentals of object-oriented programming in Python by demonstrating how to create objects, functions, methods, and classes.
You'll apply what you've learned to design your own text-based adventure game. You will be able to share your code with other students and view theirs. If you're a teacher, you'll be able to come up with ideas for using object-oriented programming in the classroom. This course is intended for people who are already familiar with Python programming and want to learn a different programming paradigm, better understand and use existing libraries, or write code that will be useful to others.
What You’ll Learn
- The course begins by introducing you to objects, and explaining that pretty much everything is an object in Python. You’ll learn about the methods associated with each object, and use Python's turtle module to draw multiple shapes of different colors and sizes on a canvas.
- Next, you’ll start to code your text adventure game, which will involve coming up with your own classes. You’ll learn about essential methods you can use to operate on instance attributes, like getters and setters — though Python is quite flexible in how it approaches this. Little by little, you’ll add “rooms” and “items” to your text adventure world.
- You’ll also extend other people’s classes through concepts known as inheritance and polymorphism. For instance, you’ll add new attributes and methods to a “Character class” to make an “Enemy class” that your player can fight.
- You’ll learn how to use diagrams to make sense of inheritance, a skill that could be useful later down the road if you ever find yourself planning larger-scale coding projects.
How You’ll Learn
- The course runs for four weeks, with an average time of 2 hours of study per week. The course material consists of videos and accompanying articles.
- FutureLearn is very social: you’ll have access to a dedicated forum under each article where you can discuss with other learners taking the course.
Fun Facts
- The course is based on the Teach Computing Curriculum.
- The lead instructor, Martin O’Hanlon, is the co-author of a book that teaches you how to program in Python while having fun in Minecraft.
- Raspberry Pis are awesome and have applications ranging from robotics to website hosting. The Pi Foundation also offers a getting-started course.
Rating: 4.7/5.0
Enroll here: futurelearn.com/courses/object-oriented-principles