Simperium is a cross platform framework that allows you to seamlessly sync data through multiple devices.
Tic Tac Toe is one of the simplest games you can possibly think of: two players take turns to place a piece (either a cross or a circle) on a 3×3 matrix. The first player that succeeds in placing three marks in either a horizontal, vertical, diagonal or antidiagonal wins the game.
We have built a single-device Tic Tac Toe game for iOS: source code available here. In this tutorial we’ll be learning how to integrate the Simperium framework, and how to enable multi-device data synchronization without writing a single line of backend code.
Our approach to implement the data model will be straight forward. We will maintain two collections:
Each player will have a unique ID, and will make sure that as long as the app is active, its uniqueID will be present…
View original post 636 more words