Git Product home page Git Product logo

midhun134 / tic-tac-toe-game Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 27 KB

Monte Carlo Tic Tac Toe is a Python implementation of the classic Tic Tac Toe game with a twist - it utilizes the Monte Carlo simulation algorithm to play against the player. The game offers a challenging and strategic experience, where the AI opponent makes decisions based on randomized simulations, providing an unpredictable and engaging gameplay

Python 100.00%

tic-tac-toe-game's Introduction

Monte Carlo Tic Tac Toe

Description

Monte Carlo Tic Tac Toe is a Python implementation of the classic Tic Tac Toe game with a twist - it utilizes the Monte Carlo simulation algorithm to play against the player. The game offers a challenging and strategic experience, where the AI opponent makes decisions based on randomized simulations, providing an unpredictable and engaging gameplay.

Features

Play against an AI opponent powered by the Monte Carlo simulation algorithm Simple and intuitive interface for easy gameplay. Option to choose between different difficulty levels. Customizable board size for added complexity. Detailed performance metrics for the AI opponent. change this tmrw.

Requirements

Python 3.11.8

Installation

Clone the repository: Screenshot 2024-02-24 225533

Navigate to the project directory:

Screenshot 2024-02-24 225552

Usage

Run the game:

Screenshot 2024-02-24 225853

Follow the on-screen instructions to play against the AI opponent.

Gameplay

The player is represented by 'X' and the AI opponent by 'O'. The player makes the first move by selecting an empty cell on the board. The AI opponent utilizes the Monte Carlo simulation algorithm to select its move. The game continues until either the player or the AI opponent achieves three in a row, or the board is filled (resulting in a draw).

Credits

Author: Midhun Mukundan

tic-tac-toe-game's People

Contributors

midhun134 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.