The Wayback Machine - https://web.archive.org/web/20230108005133/http://github.com/nicklockwood/Chess
Skip to content

nicklockwood/Chess

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

Travis Platforms Swift 5.2 License Twitter

Screenshot

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

About

A simple Chess game for iOS, written in Swift

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages