{"id":17886346,"url":"https://github.com/david-rodden/hashscript-example","last_synced_at":"2025-08-15T14:16:41.564Z","repository":{"id":91476392,"uuid":"251174226","full_name":"David-Rodden/HashScript-Example","owner":"David-Rodden","description":"Example of HashScript implemented through RSPeer's API","archived":false,"fork":false,"pushed_at":"2020-03-30T01:57:02.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-31T09:46:53.134Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/David-Rodden.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2020-03-30T01:44:11.000Z","updated_at":"2020-03-30T01:57:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"3b3bdcbd-771d-4120-951a-b257fafcf6d9","html_url":"https://github.com/David-Rodden/HashScript-Example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/David-Rodden/HashScript-Example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/David-Rodden%2FHashScript-Example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/David-Rodden%2FHashScript-Example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/David-Rodden%2FHashScript-Example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/David-Rodden%2FHashScript-Example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/David-Rodden","download_url":"https://codeload.github.com/David-Rodden/HashScript-Example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/David-Rodden%2FHashScript-Example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270579823,"owners_count":24610083,"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","status":"online","status_checked_at":"2025-08-15T02:00:12.559Z","response_time":110,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-10-28T13:05:25.192Z","updated_at":"2025-08-15T14:16:41.520Z","avatar_url":"https://github.com/David-Rodden.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"**HashScript Concept**\n\nThe intention of a HashScript is to find a separate data structure for quick and easy location \u0026 execution of tasks within a script.\nA HashScript's key/value pair is as follows:\n- A key comprising a player's state defined with certain binary attributes\n    - Eg. Within a certain area, wearing certain armor, has a full inventory, etc.\n- A value represented as the HashNode which has the code to execute a certain task.\n\nNaturally, multiple keys (or states) can be mapped to a single value.\nAs such, the user can define however many states there can be for a specific task to execute.\n\nThrough this barebones implementation, the pros \u0026 cons are as follows:\n\n_Pros_\n- Provides an O(1) method of finding a task and executing it during runtime.\n- Lets user know if there is a conditional overlap, as an IllegalStateException would be thrown\n\n_Cons_\n- Depending on approach, can have a lot of conditional overhead\n    - Eg. Writing out every single permutation for a current player's status","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavid-rodden%2Fhashscript-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavid-rodden%2Fhashscript-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavid-rodden%2Fhashscript-example/lists"}