Giter VIP home page Giter VIP logo

othello2's Introduction

About The Project

Othello gif

This is an Othello game with an AI that is able to see 5 turns in the future and place a piece in the best position using alpha-beta pruning, an optimized version of the min-max algorithm.

The min-max algorithm is a decision making algorithm that tries to find the optimal move, assuming that the opponent also plays optimally. It is often used in turn based, 2 player games.

Because the min-max algorithm checks every possible move, it is not optimized at all. Alpha-beta pruning solves this problem by cutting of branches when a better move already exists, reducing computation time greatly.

Installation

  1. Download the repository
  2. Run the program by clicking on Othello2.exe

How To Play

First, choose if you want to play against the AI or against another person.

Choose where you want to play a piece (you can place pieces on the red marks) with the arrow keys and place it with the enter key. Each piece played must be played in a position that flanks at lest one of the opponent's pieces. The pieces that were flanked are turned over to show the player's colour.

Controls

Key Action
Arrow Keys Choose where to place your piece
Enter Key Place the piece
Back Space Key Finish the game

Roadmap

See open issues for planned features and issues.

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.