dart_console_game_azizbek 0.0.1 copy "dart_console_game_azizbek: ^0.0.1" to clipboard
dart_console_game_azizbek: ^0.0.1 copied to clipboard

A simple and customizable **Tic Tac Toe (X-O Game)** package built with Flutter.

🎮 Tic Tac Toe Flutter Package #

A simple and customizable Tic Tac Toe (X-O Game) package built with Flutter.
This package provides a ready-to-use TicTacToeScreen widget where two players can play Tic Tac Toe.


✨ Features #

  • Classic 3x3 Tic Tac Toe board.
  • Two players can play as X and O.
  • Detects winner or draw automatically.
  • Clean and customizable UI.
  • Works out-of-the-box, just import and use.

📦 Installation #

Add the dependency in your pubspec.yaml:

dependencies:
  tic_tac_toe: ^1.0.0
Then run:

bash
Копировать
Редактировать
flutter pub get
🚀 Usage
dart
Копировать
Редактировать
import 'package:flutter/material.dart';
import 'package:tic_tac_toe/tic_tac_toe.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Tic Tac Toe Demo',
      theme: ThemeData(primarySwatch: Colors.blue),
      home: const TicTacToeScreen(),
    );
  }
}
📸 Screenshot
<p align="center"> <img src="https://github.com/your-username/tic_tac_toe/blob/main/assets/screenshot.png" width="300" /> </p>
⚡ Example Gameplay
Player X starts the game.

Players tap on empty squares to make their move.

The game announces a winner or draw.

🛠️ Customization
You can easily customize:

Board colors

X/O symbols

Fonts & text styles

🤝 Contributing
Contributions are welcome!
If you’d like to improve this package, feel free to open a PR or create an issue.

📄 License
This project is licensed under the MIT License.

🎯 Enjoy playing Tic Tac Toe in Flutter!
yaml
Копировать
Редактировать

---

Do you also want me to include **badges** (pub.dev, license, etc.) and an **animated gif demo** section so it looks like a professional open-source package?
1
likes
140
points
28
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A simple and customizable **Tic Tac Toe (X-O Game)** package built with Flutter.

Repository (GitHub)

License

MIT (license)

Dependencies

flutter

More

Packages that depend on dart_console_game_azizbek