Skip to content

rsazra/Swift6Align4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

connect4.mov

A very simple 4 in a row game for 2 players.

I made this for a clean and easy way to play connect four with nephews and nieces, and to start learning iOS development/SwiftUI.

Development notes:

  • It is surprisingly difficult to put holes in a rectangle in SwiftUI (there is no reverse mask type API)
  • Everything else went pretty smoothly. The hardest part was probably animating the dimming of chips not involved in the winning play for some reason.

Improvements:

  • Add a computer opponent for a single player mode
  • Animations could definitely be better

It's available on the app store as Plain 4 in a Row (Connect 4 is trademarked).

About

Simple two-player connect 4 with SwiftUI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages