Skip to main content
  • Book
  • © 2019

Simulations in Swift 5

Design and Implement with Swift Playgrounds

Apress

Authors:

  • Focus on simulations rather than algorithms for more advanced calculation and prediction
  • See the results of work immediately using Xcode’s Swift playgrounds
  • Adopt performant simulations to go beyond simple app design
  • 6465 Accesses

Buy it now

Buying options

eBook USD 29.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book USD 39.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Other ways to access

This is a preview of subscription content, log in via an institution to check for access.

Table of contents (9 chapters)

  1. Front Matter

    Pages i-xi
  2. Swift Playgrounds

    • Beau Nouvelle
    Pages 1-10
  3. The Monty Hall Problem

    • Beau Nouvelle
    Pages 11-18
  4. Guessing Game

    • Beau Nouvelle
    Pages 19-30
  5. Theatre Seating

    • Beau Nouvelle
    Pages 31-47
  6. Projectile Motion

    • Beau Nouvelle
    Pages 49-67
  7. Live Views

    • Beau Nouvelle
    Pages 69-80
  8. Game of Life

    • Beau Nouvelle
    Pages 81-96
  9. The Forest: Part One

    • Beau Nouvelle
    Pages 97-119
  10. The Forest: Part Two

    • Beau Nouvelle
    Pages 121-140
  11. Back Matter

    Pages 141-144

About this book

Design and implement simulations using Apples Swift Playgrounds. Computer simulations are used to replicate the physical systems we see all around us. They help us solve problems by performing experiments that may otherwise be impossible in the real world.  This book uses simulations to solve counter-intuitive logic puzzles, create procedural artworks, and build habitats for digital lifeforms. 

To help you create your own simulations using the Swift programming language, this book is filled with projects that you can easily follow along with. All you need is a Mac with the latest version of Xcode installed. All projects are written in Xcode’s Playgrounds. This keeps the process simple. No need to setup an Apple account, or learn anything further about building apps.

Simulations are used in many areas within computer science and yet, barely anyone is teaching them. Sure, the fundamentals are in algorithm design, but simulations are a step above that. Usually when writing an algorithm you have a specific outcome in mind. However, when you create a simulation, the system you are modelling can be far more unpredictable than sorting a list, or navigating a maze. Simulations in Swift 5 will guide you through all of this.

What You'll Learn

  • Simulate situations with advanced algorithms to solve advanced problems
  • Incorporate real-world physics into simulated problems
  • Predict biological and other systems behavior and the outcome of events based on presented factors



Who This Book Is For


Swift programmers interested in tackling fun projects in Swift involving advanced algorithms and factors

Authors and Affiliations

  • Victoria, Australia

    Beau Nouvelle

About the author

Beau Nouvelle has been developing iOS applications for over 8 years. He hascontracted for companies like IBM as well as industriousstartups. He also enjoys fun side projects in coding, such as generating artwork, creating virtual civilizations, and tweaking values here and there to see how things turn out.Beau lovesto use computers to bridge art and mathtogether and fill in missing skills. No one ever set out to create a particular fractal, it’s the numbers that do that.

Bibliographic Information

  • Book Title: Simulations in Swift 5

  • Book Subtitle: Design and Implement with Swift Playgrounds

  • Authors: Beau Nouvelle

  • DOI: https://doi.org/10.1007/978-1-4842-5337-3

  • Publisher: Apress Berkeley, CA

  • eBook Packages: Professional and Applied Computing, Apress Access Books, Professional and Applied Computing (R0)

  • Copyright Information: Beau Nouvelle 2019

  • Softcover ISBN: 978-1-4842-5336-6Published: 26 October 2019

  • eBook ISBN: 978-1-4842-5337-3Published: 25 October 2019

  • Edition Number: 1

  • Number of Pages: XI, 144

  • Number of Illustrations: 22 b/w illustrations, 26 illustrations in colour

  • Topics: Apple and iOS

Buy it now

Buying options

eBook USD 29.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book USD 39.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Other ways to access