Tic Tac Toe with Swift Playgrounds (Beta)
Build a game with Swift Playgrounds!
This book teaches you how to build a simple Tic Tac Toe game using Swift Playgrounds. Over of a series of sixteen individual lessons you'll learn how to model the game board, handle touch events, create custom nodes, and design algorithms for playing the game.
Get to know the SpriteKit framework by using scenes, nodes and actions to build the game mechanics. Use the GameplayKit framework to model different states during gameplay and design algorithms for adversarial intelligence.
The book is geared towards the beginner and requires an iPad with Swift Playgrounds installed. Copy the book onto your iPad using AirDrop.
Table of Contents
SpriteKit Intro
Views and Scenes
Adding Nodes
Scene Properties
Using Actions
Creating the Game Scene
Show the Game Board
Arranging Positions
Adding Game Pieces
Create Players
Define Moves
Minimax
Scoring
State Machines
Please note this book currently in beta with the final version expected to be released in October 2016.