A native iOS Tic Tac Toe game developed using the UIKit framework without relying on SpriteKit or any third-party libraries.
This project features a classic Tic Tac Toe game that allows two players to compete against each other on a 3x3 grid. The game is built entirely in Swift 5.0, utilizing Storyboards for its user interface design. The primary goal is to provide a simple and engaging experience while also serving as an educational tool for beginners learning iOS development.
- Two-Player Mode: Play against a friend in a competitive environment.
- User-Friendly Interface: Intuitive design with clear visual cues for winning and drawing scenarios.
- Reset Functionality: Easily restart the game after each round.
- Simple Logic: The game implements straightforward game logic, making it easy to understand how the game progresses and determines a winner.
- Educational Purpose: Designed for those who want to learn iOS development fundamentals through hands-on experience.
Preview 1 | Preview 2 | Preview 3 | Preview 4 |
---|---|---|---|
- Programming Language: Swift 5.0
- Framework: UIKit
- Design Method: Storyboard
- Development Environment: Xcode (latest version)
-
Clone the Repository
git clone https://github.com/kishanbarmawala/TicTacToeGame.git cd TicTacToeGame
-
Open in Xcode
Open the.xcodeproj
file in Xcode. Make sure you have Xcode 13+ installed. -
Run the App
Connect a simulator or a physical device, then hit Run (Cmd + R
).
- The game starts with an empty 3x3 grid.
- Player 1 (X) and Player 2 (O) take turns tapping on the grid to place their markers.
- The first player to align three markers horizontally, vertically, or diagonally wins.
- If all spaces are filled without a winner, the game ends in a draw.
- Use the reset button to start a new game at any time.
This project is licensed under the MIT License. Feel free to modify and distribute as you see fit.
For any questions, feedback, or suggestions, please reach out to me at:
- Email: [email protected]
- LinkedIn: Kishan Barmawala
Your thoughts are greatly appreciated!
- Thanks to the iOS development community for their ongoing support and resources.
- Special thanks to the educators and mentors who inspired the development of this project.