nicklockwood /
Chess
A simple Chess game for iOS, written in Swift
70/100 healthLoading repository data…
quantumOrange / repository
A simple chess engine in swift
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
A simple chess engine.
To create a chessboard in its start position:
let chessboard = Chessboard.start()
You can also create a board in any configuration with a string like this:
let chessString =
"""
8 ♜ ♞ ♝ ♛ ♚ . ♞ ♜
7 ♟ ♟ ♟ ♟ . ♟ . .
6 . . . . . . ♟ ♟
5 . . . . ♟ . . .
4 . . ♗ . ♙ . . .
3 . ♙ ♘ . . ♕ . ♘
2 ♙ . ♙ ♔ . ♙ ♙ ♙
1 . . . ♖ ♖ . . .
a b c d e f g h
"""
let chessboard = Chessboard(string: chessString)
You can move a piece on the board like this:
let mv = Move(from: .e2, to:.e4)
let newBoard = apply(move: mv, to: chessboard)
To get the chess engine to generate a move, call pickMove, optionally passing in a depth value to tell the engine how many moves to look ahead:
let move = pickMove(for:chessboard, depth: 5)
Selected from shared topics, language and repository description—not editorial ratings.
nicklockwood /
A simple Chess game for iOS, written in Swift
70/100 healthJackBCousineau /
A simple chess game built for OSX using Swift 2.0
51/100 healthjaredcassoutt /
An open-source SwiftUI chess app featuring simple, intuitive gameplay with complex underlying logic. Built for seamless interaction and responsive design, this project offers a great starting point for SwiftUI developers interested in game logic and UI development.
65/100 healthp-margitfalvi /
A simple chess game for iOS programmed in Swift 3.0
27/100 healthSammcb /
A simple board game app where you can create and share color themes.
73/100 healthmaartenlauwers /
Creating a simple chess game for MacOS in Swift
27/100 health