Tic-tac-toe Kata in Swift 5
-
X always goes first.
-
Players cannot play on a played position.
-
Players alternate placing X’s and O’s on the board until either:
-
One player has three in a row, horizontally, vertically or diagonally
-
All nine squares are filled.
-
If a player is able to draw three X’s or three O’s in a row, that player wins.
-
If all nine squares are filled and neither player has three in a row, the game is a draw.
- Open Terminal App
- Go to the project folder (where the 'Podfile' file is).
- Execute
$ pod install
in the terminal.
- Open XCode workspace.
- Run the app with XCode 10.2 on a simulator or a device with iOS 9 at least.
A tool to auto-generate Swift code for resources of your projects, to make them type-safe to use
A Colorful, flexible, lightweight logging for Swift
A tool to enforce Swift style and conventions