Book Image

Swift iOS Programming for Kids

By : Steffen D. Sommer, Jim Campagno
Book Image

Swift iOS Programming for Kids

By: Steffen D. Sommer, Jim Campagno

Overview of this book

This book starts at the beginning by introducing programming through easy to use examples with the Swift Playgrounds app. Kids are regularly encouraged to explore and play with new concepts to support knowledge acquisition and retention – these newly learned skills can then be used to express their own unique ideas. Children will be shown how to create their first iOS application and build their very own movie night application.
Table of Contents (21 chapters)
Swift iOS Programming for Kids
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface
2
Getting Set Up

Chapter 10. Pokémon Battle

Now that we have a grasp of how we can create our own custom types, we will expand upon it in this chapter. In this chapter, we will go through the following things:

  • Creating a custom Pokémon type

  • Creating instances of our Pokémon type and having them interact with each other

  • Having Charizard and Pikachu fight with each other to solidify our understanding of having instances interact through the use of the methods that we create

  • Having our Pokémon hug it out to help us understand how instances interact with each other