2 player connect 4 game built with swiftUI while learning swift/swiftui
Demo:
Screen.Recording.2022-09-27.at.10.17.22.AM.mov
- learning swift/swiftui for the first time
- wiring up data model to UI controls
- win state checking (optimized based on the last checker played to save scanning entire grid after every turn)
- do not hardcode player turn order
- do not hardcode input selection
- do not hardcode grid boundary checks
- player nicknames / winner nicknames
- fix unique id warning in rows/columns
- arbitrary grid size
- arbitrary player count
- board should be passed around so much in data model, wonder what an FP implementation would look like?