Giter Club home page Giter Club logo

flutter-tictactoe-alpha-beta's Introduction

Two Player TikTakToe Game in Flutter with Best Move Feature

This is a simple implementation of the classic two player game, TikTakToe, using Flutter with a feature of best move using alpha-beta pruning.

Features

  • Play against a friend in a 3x3 grid.
  • Turn-based gameplay where players take turns placing X or O on the board.
  • Detects when a player has won or the game ends in a tie.
  • Displays the final result.
  • Allows players to restart the game after it ends.
  • Uses alpha-beta pruning to determine the best move for the player.

Screenshots

Gameplay Screenshot Suggestion Screenshot

Winning Screenshot Tie Screenshot

Usage

To play the game, simply clone this repository to your local machine and run it in a Flutter environment. Ensure that you have flutter version 3.3.10 installed and configured on your machine.

Once the app starts running, the will game begins and continues until a player wins or the board is full.

The game will use alpha-beta pruning to determine the best move for the player. The best move will be displayed on the board. You can check the best move by clicking the "Best Move" button.

After the game ends, You can start a new game by clicking the "New Game" button.

One point will be added to the player point when a player wins a game or another player resign by clicking the "Resign" button.

The score of both players can be set to zero by clicking the "Restart" button.

Contributions

Contributions are welcome! If you find a bug or have an idea for a new feature, feel free to create a pull request.

flutter-tictactoe-alpha-beta's People

Contributors

zeeshan23s avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.