Coder Social home page Coder Social logo

othello's Introduction

Flutter

Othello

AI that plays the game Othello/Reversi against you.

More pieces of information

Idea

This was my student assignment in the first year of college on the subject called "Algorithms and data structures" by professor Branko Milosavljevic.

Implementation

As at that time console applications were the only thing I knew how to make, so it doesn't have a cool GUI but steel is pretty fun to play.

It uses minimax algorithm with alfa-beta pruning to find the best move possible. Also because I optimized board storing and heuristic calculation for every position I was able to make it predict up to 7 turns in advanced so good luck trying to beat it.

Regarding the structures used to design the project, I implemented my version of ChainedHashMap to store already calculated board positions (as one of the optimization techniques) and also I implemented BinaryTree used for pruning. Since it was one of the requirements of the project all the calculations are done in less than 3 seconds so you feel like you are playing against a real pro.

Resources used

othello's People

Contributors

upocek avatar

Stargazers

Tamara Ilić 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.