Coder Social home page Coder Social logo

tomsoulage / mastermind-game Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 3.62 MB

(2018) Mastermind ( OCaml ) : two game modes: against a local friend ( 1v1 ) or against an AI ( using the Knuth algorithm or the Naive algorithm ) with differents levels of difficulty.

OCaml 100.00%
mastermind ocaml knuth-algorithm naive-bayes-algorithm game

mastermind-game's Introduction

Mastermind ( OCaml ) : two game modes: against a friend or against an AI ( using the Knuth algorithm or the Naive algorithm ) with differents levels of difficulty.

Pour lancer le jeu, il suffit d'effectuer les manipulations suivantes :

-> #use "Run.ml";; -> mastermind "Nom_du_joueur" nombre_de_tentatives nombres_de_parties saisieAuto_ou_saisieManuelle en respectant : string -> int -> int -> bool

Afin de profiter pleinement de l'interface graphique, il est préfèrable de lancer le jeu en mode plein écran. Le nombre de points est calculé en fonction du nombre de tours nécessaires au joueur afin de trouver le vrai code. Exemple, si le joueur trouve le code en 3 coups et qu'il disposait de 10 tentatives, il remportera 7 points !

Les paramètres nombre_de_couleur et nombre_de_pion sont fixés à l'avance et ne peuvent être modifiés, comme dans le jeu Mastermind classique c'est à dire 4 couleurs et 6 pions.

Il est possible de jouer contre un amis, ou contre un IA avec différents niveaux de difficulté.

mastermind-game's People

Contributors

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