https://github.com/rishn/tic-tac-toe-flutter
https://github.com/rishn/tic-tac-toe-flutter
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/rishn/tic-tac-toe-flutter
- Owner: rishn
- Created: 2024-11-21T16:44:29.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-21T16:57:56.000Z (over 1 year ago)
- Last Synced: 2025-06-04T22:26:55.521Z (11 months ago)
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Tic-Tac-Toe-Flutter
# Tic Tac Toe Game 🎮
A simple yet engaging **Tic Tac Toe** game built with **Flutter**! This project demonstrates how to implement a classic two-player game with a sleek and responsive UI, all while leveraging the power of Flutter for cross-platform support.
---
## ✨ Features
- **Two-player mode**: Play against a friend on the same device.
- **Responsive UI**: Optimized for various screen sizes.
- **Interactive gameplay**: Smooth animations and intuitive controls.
- **Customizable**: Easily extend or modify the UI and game logic.
- **Cross-platform**: Runs seamlessly on both Android and iOS.
---
## 🚀 Getting Started
Follow these instructions to get a copy of the project up and running on your local machine.
### Prerequisites
- [Flutter SDK](https://docs.flutter.dev/get-started/install) installed on your machine.
- A code editor such as [Visual Studio Code](https://code.visualstudio.com/) or [Android Studio](https://developer.android.com/studio).
---
## 📂 Project Structure
The project is organized into the following main directories and files:
- **`lib/`**: Contains all the Dart code for the app.
- **`main.dart`**: Entry point of the application.
- **`ui/`**: Includes UI-related components like widgets and screens.
- **`home_screen.dart`**: The main screen with options to start the game.
- **`game_screen.dart`**: The game board where players make their moves.
- **`logic/`**: Handles the game logic and state management.
- **`game_controller.dart`**: Core logic for game flow (win conditions, turn tracking).
- **`board_state.dart`**: Maintains the state of the game board.
- **`assets/`**: Folder for static assets such as images, fonts, or sounds.
- **`screenshots/`**: Screenshots of the app for documentation or showcasing.
- **`test/`**: Contains test files for unit and widget testing.
---