Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/vsmithers1087/ConnectFour

A basic Connect Four game built with SwiftUI
https://github.com/vsmithers1087/ConnectFour

connectfour game swift swiftui

Last synced: 3 months ago
JSON representation

A basic Connect Four game built with SwiftUI

Awesome Lists containing this project

README

        

# ConnectFour

gameplay

## About

A simple Connect Four game built entirely with SwiftUI. Through working on this project, I have learned that the upsides of using SwiftUI outside of an orthodox single view application are pretty great. While still a work in progress, by viewing this demo it is possible to see in practice the basics of animations and reusing simple components to build more complex custom user interfaces.

You can modify the configuration in `Config.swift` to change everything from the appearance to board dimensions, and the number of tiles required to win.
```swift
let config = GameConfig(playerOneConfig: PlayerConfig(color: .orange, image: Image(systemName: "tortoise")),
playerTwoConfig: PlayerConfig(color: .blue, image: Image(systemName: "hare")),
columns: 7,
rows: 6,
tilesToWin: 4,
primaryColor: .purple,
secondaryColor: .white,
backgroundImage: Image("wallpaper"))

```