Coder Social home page Coder Social logo

zericardo / reversi-minimax Goto Github PK

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

Minimax strategy code for a reversi game (sequential, openmp, pthreads and openMPI). This is a project for the subject of parallel programing.

License: MIT License

C++ 100.00%

reversi-minimax's Introduction

reversi-minimax

This was a project for the subject of parallel programing and it uses the minimax stragy to play the revesi game. All positions in the board have the same weight (it was a project rule, not the best choice). There are four versions of the code: a sequential version, two versions with using the shared memory paradigm (openMP and pThreads) and one version using the message passing paradigm (openMPI)

Dependency packages (on linux debian/ubuntu/mint): build-essentials (sequential, openMP, pThreads and openMPI) other depencies (for the parallel versions) will be added later with the code.

Input:

The input must be in a file named "reversi.conf" with two (positive integer) numbers separated by spaces: the size o the (squared) reversi board and the number of levels that you want the minimax strategy to predict (memory problems).

Output:

The output is the file "game.txt", it has three columns, the first one is the color of the bead being played and the second and third ones are the positions of the bead on the board (line and column).

reversi-minimax's People

Contributors

zericardo avatar

Watchers

 avatar

reversi-minimax's 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.