{"id":21634905,"url":"https://github.com/ealenn/rock-paper-scissors-simulator","last_synced_at":"2026-04-28T13:36:16.631Z","repository":{"id":103786938,"uuid":"160978360","full_name":"Ealenn/Rock-Paper-Scissors-Simulator","owner":"Ealenn","description":"Game theory - Rock Paper Scissors","archived":false,"fork":false,"pushed_at":"2019-09-19T14:02:43.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-25T05:07:15.273Z","etag":null,"topics":["game-theory","nodejs","rock-paper-scissors","simulator","typescript"],"latest_commit_sha":null,"homepage":"https://github.com/Ealenn/rock-paper-scissors-socket","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Ealenn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-12-08T21:03:24.000Z","updated_at":"2019-09-19T14:02:45.000Z","dependencies_parsed_at":"2023-03-13T15:05:42.402Z","dependency_job_id":null,"html_url":"https://github.com/Ealenn/Rock-Paper-Scissors-Simulator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Ealenn/Rock-Paper-Scissors-Simulator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ealenn%2FRock-Paper-Scissors-Simulator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ealenn%2FRock-Paper-Scissors-Simulator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ealenn%2FRock-Paper-Scissors-Simulator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ealenn%2FRock-Paper-Scissors-Simulator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ealenn","download_url":"https://codeload.github.com/Ealenn/Rock-Paper-Scissors-Simulator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ealenn%2FRock-Paper-Scissors-Simulator/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261808046,"owners_count":23212688,"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":["game-theory","nodejs","rock-paper-scissors","simulator","typescript"],"created_at":"2024-11-25T03:18:35.557Z","updated_at":"2026-04-28T13:36:11.598Z","avatar_url":"https://github.com/Ealenn.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simulator of Rock Paper Scissors\n\n## Build and Launch\n\n```sh\n# Install dependencies\nyarn install\n# Build source\nyarn build\n# Start simulation\nyarn start\n```\n\n## Players\n\n- **Random** He plays randomly rock paper or scissors\n\n- **Human Random** He plays randomly rock paper or scissors, but never plays the shot just played\n\n- **Inverted Human Random** He plays randomly rock paper or scissors, but never plays the opponent's shot\n\n- **Copycat** He randomly plays the first shot, then replay the opponent's shot\n\n- **Inverted Copycat** Plays the shot he should have played just before for win\n\n## Results\n\n### Leaderboard\n\n|        Player         | % Win/Game | % Loose/Game | % Egality/Game | Win | Loose | Egality |\n| --- | --- | --- | --- | --- | --- | --- |\n|     Human Random      |         60 | 20           | 20             | 6   | 2     | 2       |\n|   Inverted Copycate   |         50 | 30           | 20             | 5   | 3     | 2       |\n| Inverted Human Random |         30 | 50           | 20             | 3   | 5     | 2       |\n|        Random         |         30 | 50           | 20             | 3   | 5     | 2       |\n|       Copycate        |         30 | 50           | 20             | 3   | 5     | 2       |\n\n### Resume\n\n|        Player         |              Opponent | % Win | % Loose | % Egality | Win       | Loose    | Egality   |\n| --- | --- | --- | --- | --- | --- | --- | --- |\n|     Human Random      |          Human Random | 100   | 0       | 0         | 100000000 | 0        | 0         |\n|        Random         |                Random | 66.67 | 0       | 33.33     | 66667669  | 0        | 33332331  |\n|   Inverted Copycate   |              Copycate | 50    | 0       | 50        | 50000000  | 0        | 50000000  |\n|     Human Random      |              Copycate | 50    | 50      | 0         | 49995590  | 50004409 | 1         |\n|     Human Random      |     Inverted Copycate | 50    | 0       | 50        | 50004769  | 0        | 49995231  |\n| Inverted Human Random | Inverted Human Random | 49.99 | 0       | 50.01     | 49994037  | 0        | 50005963  |\n|       Copycate        |          Human Random | 49.99 | 50.01   | 0         | 49990309  | 50009690 | 1         |\n|   Inverted Copycate   |                Random | 33.34 | 33.33   | 33.33     | 33339395  | 33326968 | 33333637  |\n|        Random         |              Copycate | 33.34 | 33.33   | 33.33     | 33336421  | 33333991 | 33329588  |\n|     Human Random      |                Random | 33.34 | 33.33   | 33.33     | 33336225  | 33333974 | 33329801  |\n|       Copycate        | Inverted Human Random | 33.34 | 33.33   | 33.34     | 33336584  | 33327335 | 33336081  |\n| Inverted Human Random |     Inverted Copycate | 33.33 | 33.34   | 33.32     | 33333996  | 33342383 | 33323621  |\n| Inverted Human Random |              Copycate | 33.33 | 33.34   | 33.33     | 33325922  | 33339811 | 33334267  |\n|   Inverted Copycate   | Inverted Human Random | 33.33 | 33.33   | 33.33     | 33333318  | 33334278 | 33332404  |\n|        Random         |     Inverted Copycate | 33.33 | 33.34   | 33.33     | 33333121  | 33335463 | 33331416  |\n| Inverted Human Random |                Random | 33.33 | 33.34   | 33.33     | 33330727  | 33338471 | 33330802  |\n|        Random         |          Human Random | 33.33 | 33.33   | 33.33     | 33331867  | 33334456 | 33333677  |\n|        Random         | Inverted Human Random | 33.32 | 33.35   | 33.33     | 33324150  | 33345259 | 33330591  |\n|       Copycate        |                Random | 33.32 | 33.34   | 33.34     | 33322916  | 33337545 | 33339539  |\n| Inverted Human Random |          Human Random | 25    | 25      | 50        | 24998223  | 25000128 | 50001649  |\n|     Human Random      | Inverted Human Random | 24.99 | 25      | 50.01     | 24993757  | 24999385 | 50006858  |\n|       Copycate        |              Copycate | 0     | 0       | 100       | 1         | 0        | 99999999  |\n|   Inverted Copycate   |     Inverted Copycate | 0     | 0       | 100       | 0         | 0        | 100000000 |\n|   Inverted Copycate   |          Human Random | 0     | 50      | 50        | 0         | 49997858 | 50002142  |\n|       Copycate        |     Inverted Copycate | 0     | 50      | 50        | 0         | 50000000 | 50000000  |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fealenn%2Frock-paper-scissors-simulator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fealenn%2Frock-paper-scissors-simulator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fealenn%2Frock-paper-scissors-simulator/lists"}