A simple Chess game for iOS, written in Swift

Travis Platforms Swift 5.2 License Twitter


Swift Chess

This is a simple chess game for iPhone and iPad, designed for novice players.

It features a very simple AI that plays much like a beginner, looking only at the current state of the board and trying to either take an enemy piece or put them in check without immediately being taken.

You can choose between human vs human, human vs computer, or computer vs computer. Set both players to Computer to get a better sense of how it plays (spoiler: not well).

To-Do List

  • Persist the game state when the app is closed
  • Let user choose piece when pawn reaches other side instead of always promoting to a queen
  • Add speed and intelligence settings for AI
  • Detect draw conditions such as dead positions, insufficient material, repetition, etc
  • Standard openings


  • Swift Tools 5.0.0
View More Packages from this Author


  • None
Last updated: Sat Nov 25 2023 13:06:58 GMT-1000 (Hawaii-Aleutian Standard Time)