cupertino-sample-code/swift-tictacfish_implementing_a_game_using_distributed_actors
Mihaela Mihaljevic 37fd4fb24f Initial commit: 606 Apple sample code projects
MIT License - Apple Developer sample code
Downloaded via Cupertino (https://github.com/mihaelamj/cupertino)
2025-12-03 00:19:12 +01:00
..
.idea Initial commit: 606 Apple sample code projects 2025-12-03 00:19:12 +01:00
Configuration Initial commit: 606 Apple sample code projects 2025-12-03 00:19:12 +01:00
LICENSE Initial commit: 606 Apple sample code projects 2025-12-03 00:19:12 +01:00
Step 0 Offline Local Only Initial commit: 606 Apple sample code projects 2025-12-03 00:19:12 +01:00
Step 1 Distributed yet still Local Bot Initial commit: 606 Apple sample code projects 2025-12-03 00:19:12 +01:00
Step 2 Distributed Remote Bot Initial commit: 606 Apple sample code projects 2025-12-03 00:19:12 +01:00
Step 3 Distributed Local Network Player Initial commit: 606 Apple sample code projects 2025-12-03 00:19:12 +01:00
.gitignore Initial commit: 606 Apple sample code projects 2025-12-03 00:19:12 +01:00
README.md Initial commit: 606 Apple sample code projects 2025-12-03 00:19:12 +01:00

TicTacFish: Implementing a game using distributed actors

Use distributed actors to take your Swift concurrency and actor-based apps beyond a single process.

Overview

Configure the sample code project

Because the sample app uses new Swift language features introduced in Swift 5.7, you need at least the following versions of iOS, macOS, and Xcode to edit and run the samples:

To run the iOS app:

  • iOS 16
  • macOS 13
  • Xcode 14

To run the server-side application on your local Mac:

  • macOS 13
  • Xcode 14

To run the server-side application on a Linux server, compile and run the Server package using:

  • Any supported Linux distribution
  • Swift 5.7

You can try out the peer-to-peer local networking part of the sample app by starting multiple simulators (such as an iPhone 13 and an iPhone 13 Pro) from the same Xcode project.