{"id":26002878,"url":"https://github.com/sinistro14/mindefuse","last_synced_at":"2025-03-05T19:34:54.245Z","repository":{"id":218609467,"uuid":"175809719","full_name":"sinistro14/mindefuse","owner":"sinistro14","description":"Hostage situation negotiator simulation","archived":false,"fork":false,"pushed_at":"2022-12-26T20:55:52.000Z","size":393,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-02-11T16:26:44.845Z","etag":null,"topics":["agents","artificial-intelligence","genetic-algorithm","knuth-algorithm","mastermind-game","negotiation","np-hard","python","swaszek-algorithm"],"latest_commit_sha":null,"homepage":null,"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/sinistro14.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":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2019-03-15T11:43:03.000Z","updated_at":"2019-08-22T19:49:54.000Z","dependencies_parsed_at":"2024-01-23T01:06:50.376Z","dependency_job_id":"2b45f799-44aa-45a8-9ef6-3c7f4338cbf0","html_url":"https://github.com/sinistro14/mindefuse","commit_stats":null,"previous_names":["sinistro14/mindefuse"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinistro14%2Fmindefuse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinistro14%2Fmindefuse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinistro14%2Fmindefuse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinistro14%2Fmindefuse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sinistro14","download_url":"https://codeload.github.com/sinistro14/mindefuse/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242093177,"owners_count":20070658,"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":["agents","artificial-intelligence","genetic-algorithm","knuth-algorithm","mastermind-game","negotiation","np-hard","python","swaszek-algorithm"],"created_at":"2025-03-05T19:34:53.592Z","updated_at":"2025-03-05T19:34:54.232Z","avatar_url":"https://github.com/sinistro14.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mindefuse\n[![Build Status](https://travis-ci.com/sinistro14/mindefuse.svg?token=NY5sBpywnxqMdVGh3wnz\u0026branch=master)](https://travis-ci.com/sinistro14/mindefuse)\n\nHostage situation negotiator simulation\n\n## Prerequisites\nThe application is compatible with Windows and Linux based systems.\nPython version 3.6 or above is assumed to be installed, as well as pip package manager utility and setuptools module.\n\n## Installation\n```bash\npython make.py setup\n``` \n\n## How to run\n```bash\npython make.py run\n```\n\n## Commands\n\nFurther information can be provided while running the application by using _\\\u003ccommand\\\u003e -h_ instruction.\n\n* help - list the available commands\n* exit | quit - exit the application\n* generate_problem - Generates a secret of a given type and size\n* run_strategy - Generates and solves a problem in a given number of rounds, using the requested strategy\n\n## Example run\n\nTo exercise some of the available commands, one can try:\n\n1. Generate a problem of size 10 and type string, that must be solved in less than 12 rounds.\n```\n(mindefuse) \u003e generate_problem -r 12 -t string -s 10\nEhGnaXhAOH\n```\n\n2. Generate and solve a problem with secret sequence _378_ in less than 12 rounds, using Knuth strategy.\n```\n(mindefuse) \u003e run_strategy -r 12 -a knuth --secret 378\n-----------------------------------History-----------------------------------\nRound: 1 | Secret: 378 | Guess: 001 | Result: (0, 0) | Time: 000.0000 s\nRound: 2 | Secret: 378 | Guess: 223 | Result: (1, 0) | Time: 003.9081 s\nRound: 3 | Secret: 378 | Guess: 445 | Result: (0, 0) | Time: 004.7819 s\nRound: 4 | Secret: 378 | Guess: 662 | Result: (0, 0) | Time: 005.1764 s\nRound: 5 | Secret: 378 | Guess: 377 | Result: (0, 2) | Time: 005.3405 s\nRound: 6 | Secret: 378 | Guess: 378 | Result: (0, 3) | Time: 005.3870 s\nThe game was won!!!\n```\n\n3. Generate and solve a problem with secret sequence _iekl_ in less than 12 rounds, using Genetic strategy.\n```\n(mindefuse) \u003e run_strategy -r 12 -a genetic --secret iekl\n-----------------------------------History-----------------------------------\nRound: 1 | Secret: iekl | Guess: aabb | Result: (0, 0) | Time: 000.0000 s\nRound: 2 | Secret: iekl | Guess: ogdg | Result: (0, 0) | Time: 000.0094 s\nRound: 3 | Secret: iekl | Guess: nxxh | Result: (0, 0) | Time: 000.0391 s\nRound: 4 | Secret: iekl | Guess: ukyv | Result: (1, 0) | Time: 000.0873 s\nRound: 5 | Secret: iekl | Guess: jeve | Result: (0, 1) | Time: 000.2677 s\nRound: 6 | Secret: iekl | Guess: mrvw | Result: (0, 0) | Time: 001.1918 s\nRound: 7 | Secret: iekl | Guess: ieuf | Result: (0, 2) | Time: 004.2101 s\nRound: 8 | Secret: iekl | Guess: ceut | Result: (0, 1) | Time: 007.6359 s\nRound: 9 | Secret: iekl | Guess: kepf | Result: (1, 1) | Time: 011.5047 s\nRound: 10 | Secret: iekl | Guess: iekz | Result: (0, 3) | Time: 015.8030 s\nRound: 11 | Secret: iekl | Guess: iekl | Result: (0, 4) | Time: 039.8143 s\nThe game was won!!!\n```\n\n4. Generate and solve a problem with a randomly generated secret of numeric elements with size 4,\nin less than 12 rounds, using Genetic strategy. The generated secret was _8984_.\n```\n(mindefuse) \u003e run_strategy -r 12 -a genetic -t numeric -s 4\n-----------------------------------History-----------------------------------\nRound: 1 | Secret: 8984 | Guess: 0011 | Result: (0, 0) | Time: 000.0000 s\nRound: 2 | Secret: 8984 | Guess: 8866 | Result: (1, 1) | Time: 000.0173 s\nRound: 3 | Secret: 8984 | Guess: 8287 | Result: (0, 2) | Time: 000.1418 s\nRound: 4 | Secret: 8984 | Guess: 3286 | Result: (0, 1) | Time: 001.8032 s\nRound: 5 | Secret: 8984 | Guess: 8989 | Result: (0, 3) | Time: 003.8772 s\nRound: 6 | Secret: 8984 | Guess: 8985 | Result: (0, 3) | Time: 006.3854 s\nRound: 7 | Secret: 8984 | Guess: 8988 | Result: (0, 3) | Time: 009.4058 s\nRound: 8 | Secret: 8984 | Guess: 8984 | Result: (0, 4) | Time: 012.7700 s\nThe game was won!!!\n```\n\n## License\n\nThis project is licensed under the MIT License - see [LICENSE](LICENSE) file for details.\n\n## Disclaimer\n\nThis software was develop as an academic project, therefore,\nno enterprise level reliability assurances can be provided.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsinistro14%2Fmindefuse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsinistro14%2Fmindefuse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsinistro14%2Fmindefuse/lists"}