Code Monkey home page Code Monkey logo

mehdiby / tun-akinator Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 5.31 MB

Tunisian Akinator is a Python-based implementation of the classic Akinator game, but with a customizable dataset. The game tries to guess which character the user is thinking of by asking a series of yes/no questions. The decision tree algorithm used for selecting questions in this game employs ML techniques to maximize the info gain at every step

Python 61.65% Jupyter Notebook 38.35%

tun-akinator's Introduction

demo gif

Tun-Akinator

Tunisian Akinator is a Python-based implementation of the classic Akinator game, but with a customizable dataset of characters. The game tries to guess which character the user is thinking(that includes tunisian fictional characters) of by asking a series of yes/no questions. The questions are chosen based on a decision tree algorithm that uses machine learning techniques to maximize the information gain at each step.

Getting Started

To play the game, you need to have Python 3 and Pygame installed on your computer. You can install Pygame using pip:

pip install pygame

Once you have installed Pygame, you can run the game by running the following command in your terminal:

python tun_akinator.py

How to Play

When you start the game, you will be asked a series of questions. Answer each question truthfully by clicking on the "Yes" or "No" button. The game will use your answers to narrow down the list of possible characters until it can make a prediction.

If the game makes the correct prediction, click the "r" key to play another round.

Data Science

The game uses a decision tree algorithm to generate questions and make predictions. The decision tree is built using a dataset of Tunisian characters and personalities. The questions are chosen based on a metric called information gain, which measures how much a question reduces the uncertainty about the answer.

tun-akinator's People

Contributors

mehdiby avatar

Stargazers

 avatar Virender Garg avatar Ahmed Chennaoui 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.