Code Monkey home page Code Monkey logo

carloconnect-cpp's Introduction

CarloConnect

CarloConnect is a Monte Carlo Tree Search (MCTS) based game artificial intelligence (AI) to play Connect Four - implemented in C++. The game of Connect Four using CarloConnect can be played online on https://carloconnect.com/.

The provided code of this repository can be compiled to a console application to play Connect Four against CarloConnect offline. Besides the MCTS approach utilized for CarloConnect, the code further contains a Monte Carlo Search (MCS) approach.

For further information about the game of Connect Four, the MCS, the MCTS, the implementation and the strength of CarloConnect, see my thesis.

Configuration

The main.cpp file is the main file of the program. All configurations must be done there. By default, the computer's moves are calculated with the MCTS having a computing time limit of 1000 ms. To switch between the applied AI (MCS and MCTS), see Line 17, to modify the time limit, see Line 20.

Compilation

In order to compile the code, the main file must be compiled. Therefore, solely a C++ compiler suffice. With the Windows PowerShell/Command Prompt or a Linux based Terminals the main.cpp can be compiled using g++ (Windows, Linux):

$ g++ main.cpp -std=c++14

Alternatively, the files of this repository can be added to project folders of C++ IDEs like VisualStudio or CLion and be run by compiling the main.cpp file inside the IDE.

carloconnect-cpp's People

Contributors

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