{"id":28213488,"url":"https://github.com/mubarak-mohamed/guessing-game","last_synced_at":"2025-08-02T07:17:30.256Z","repository":{"id":291482614,"uuid":"976861851","full_name":"mubarak-mohamed/guessing-game","owner":"mubarak-mohamed","description":"Guessing Game","archived":false,"fork":false,"pushed_at":"2025-05-04T22:40:47.000Z","size":140,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-17T20:11:23.094Z","etag":null,"topics":["ai","machine-learning-algorithms","pandas-dataframe","python-library","uci-machine-learning"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mubarak-mohamed.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-05-02T22:23:45.000Z","updated_at":"2025-05-04T22:43:25.000Z","dependencies_parsed_at":"2025-05-04T23:42:33.380Z","dependency_job_id":null,"html_url":"https://github.com/mubarak-mohamed/guessing-game","commit_stats":null,"previous_names":["mubarak-mohamed/guessing-game"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mubarak-mohamed/guessing-game","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mubarak-mohamed%2Fguessing-game","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mubarak-mohamed%2Fguessing-game/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mubarak-mohamed%2Fguessing-game/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mubarak-mohamed%2Fguessing-game/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mubarak-mohamed","download_url":"https://codeload.github.com/mubarak-mohamed/guessing-game/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mubarak-mohamed%2Fguessing-game/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259308154,"owners_count":22837974,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","machine-learning-algorithms","pandas-dataframe","python-library","uci-machine-learning"],"created_at":"2025-05-17T20:10:44.523Z","updated_at":"2025-06-11T17:31:23.623Z","avatar_url":"https://github.com/mubarak-mohamed.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n[![GitHub license](https://img.shields.io/github/license/mubarak-mohamed/guessing-game)](https://github.com/mubarak-mohamed/guessing-game.git)\n[![PyPI version](https://badge.fury.io/py/numpy.svg?icon=si%3Apython)](https://badge.fury.io/py/numpy)\n\n\n\u003ch1 style=\"text-align:center\"\u003e\n jeu de la Devinette\n\u003c/h1\u003e\n\n# Table of content\n- [Overview](#Overview)\n- [Data format](#fData-format)\n- [dataset](#dataset)\n- [Citation](#Citation)\n- [Features](#Features)\n- [Licence](#licence)\n\n# Overview\n\nThe project under consideration implements a guessing game in which the computer attempts to discern an animal or object that the user is contemplating by posing yes/no questions. The implementation utilizes a decision tree to efficiently narrow down the possibilities.\n\n![Guessing Game Logo](dataset/output.png)\n\n# Installation\n\n1. Clone this repository :\n\n```bash\ngit clone https://github.com/zool-techno/guessing-game.git\ncd guessing-game\n```\n\n# Install the dependencies:\n\n  - Required packages (install using `pip install -r requirements.txt`) :\n  - Python 3.12 or higher\n  - pandas\n  - numpy\n  - scikit-learn\n\n# Project structure :\n\n- `main.py` : The primary game implementation and data pre-processing module\n- `requirements.txt` : Project dependencies\n- `assets/zoo.csv` : Example dataset \n\n# Use\n\n- Prepare your dataset. You can download it [here](https://archive.ics.uci.edu/dataset/111/zoo)  in CSV format with the characteristics of the animals/objects.\n\n2. Run the game :\n```bash\npython main.py\n```\n\n3. Follow the on-screen instructions to play.\n\n# Data format\n\nThe dataset must be in CSV format with :\n- One column per characteristic\n- The last column must contain the name of the animal/object\n- Values must be binary (0/1) for qualitative characteristics\n- Numerical values will be normalised automatically\n\n# dataset\n\n| animal_name | hair | feathers | eggs | milk | airborne | aquatic | venomous | fins | legs | tail | domestic | catsize | type |\n|-------------|------|----------|------|------|----------|--------|----------|------|------|------|----------|---------|------|\n| aardvark    | 1    | 0        | 0    | 1    | 0        | 0      | 0        | 0    | 4    | 0    | 0        | 1       | 1    |\n| antelope    | 1    | 0        | 0    | 1    | 0        | 0      | 0        | 0    | 4    | 1    | 0        | 1       | 1    |\n| bass        | 0    | 0        | 1    | 0    | 0        | 1      | 0        | 1    | 0    | 1    | 0        | 0       | 4    |\n| bear        | 1    | 0        | 0    | 1    | 0        | 0      | 0        | 0    | 4    | 0    | 0        | 1       | 1    |\n| boar        | 1    | 0        | 0    | 1    | 0        | 0      | 0        | 0    | 1    | 0    | 0        | 1       | 1    |\n\n\n# Citation \n\n```tex\n@online{noauthor_cours_nodate,\n\ttitle = {Cours - Arbres de décision — Cnam – {UE} {RCP}209},\n\turl = {https://cedric.cnam.fr/vertigo/cours/ml2/coursArbresDecision.html}\n    }\n```\n```\n- Quinlan, J. R. (1986). Induction of decision trees. Machine learning, 1(1), 81-106.\n- Breiman, L., Friedman, J., Stone, C. J., \u0026 Olshen, R. A. (1984). Classification and regression trees.\n- McKinney, W. (2010). Data structures for statistical computing in python. Proceedings of the 9th Python in Science Conference, 51-56.\n```\n# Features \n\nPotential improvements include:\n- Adding sound effects and animations \n- Implementing a more sophisticated learning mechanism\n- Adding a graphical user interface\n- Supporting multiple languages\n\n\n# Licence\n\nThis project is under  [MIT license](https://gitlab.com/mubarak-mohamed/guessing-game/-/blob/58271dc731aced70a640748f83b2752a0f4f90a1/LICENSE). See the LICENSE file for more details. \n\n[![Attribution-NonCommercial-ShareAlike](https://licensebuttons.net/i/l/by-nc-sa/ffffff/00/00/00/88x31.png)](https://creativecommons.org/licenses/by-nc-sa/2.0/)\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmubarak-mohamed%2Fguessing-game","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmubarak-mohamed%2Fguessing-game","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmubarak-mohamed%2Fguessing-game/lists"}