Eco TicTacToe Eco TicTacToe

Eco TicTacToe

From Design to iPhone App — Build a SwiftUI Game with a Computer Player That Never Loses

    • 5.0 • 2 Ratings

Publisher Description

NEW: the finished game is playable right inside the book. In Apple Books, turn to “Try to Beat Pro” and play against the same MiniMax computer player you build in Chapter 9. On any other phone or computer, play it at jimmychang26.github.io/tictactoe

Build a real iPhone game from an empty Xcode project to a finished app, and understand every line of code along the way.

Eco TicTacToe walks you step by step through a complete Tic Tac Toe game written in SwiftUI: a clean game board, a score bar, three difficulty levels, and a computer player that never loses. Like building with Lego, each chapter adds one small piece, and the pieces snap together into a professional app.

What you will learn:
• SwiftUI basics explained simply: views, stacks, grids, modifiers, @State and @Observable
• How to keep game rules separate from the screen, so your code is easy to read and test
• Easy and Medium computer players built from a few simple rules
• The MiniMax algorithm, the same idea behind chess programs, explained with a real game tree
• Swift Testing, including a test that plays every possible game to prove the computer never loses
• What Apple looks for when you publish to the App Store

This second edition was completely rewritten. The author rebuilt the app from scratch and shares, in "Lesson from Version 1" boxes, each mistake from the first version and how it was fixed. Every line of code was built and tested in Xcode, and the complete source code is included.

No experience with Swift is needed. If you can follow a recipe, you can follow this book.

Part of the Effortless Coding Series by James Chang.

GENRE
Computers & Internet
RELEASED
2023
March 1
LANGUAGE
EN
English
LENGTH
53
Pages
PUBLISHER
James Chang
SELLER
James chang
SIZE
5.5
MB
井字棋 Eco TicTacToe 井字棋 Eco TicTacToe
2023
Swift Game Programming for Absolute Beginners Swift Game Programming for Absolute Beginners
2015
Building JavaScript Games Building JavaScript Games
2014
Beginning Game Programming with Pygame Zero Beginning Game Programming with Pygame Zero
2020
Learning C# by Programming Games Learning C# by Programming Games
2013
Python, PyGame, and Raspberry Pi Game Development Python, PyGame, and Raspberry Pi Game Development
2019
THE REFLECTING ZOMBIE THE REFLECTING ZOMBIE
2013
Don't Travel Without iPhone Don't Travel Without iPhone
2018
Amazing iPhone Tricks & Tips Amazing iPhone Tricks & Tips
2023
Tendon Surgery of the Hand E-Book Tendon Surgery of the Hand E-Book
2012
井字棋 Eco TicTacToe 井字棋 Eco TicTacToe
2023
难以置信的 iPhone 技巧和窍门 (中文简体) 难以置信的 iPhone 技巧和窍门 (中文简体)
2023