{"id":15365457,"url":"https://github.com/epiphone/adventure-capitali-ts","last_synced_at":"2025-04-09T00:48:31.660Z","repository":{"id":151574882,"uuid":"224139184","full_name":"epiphone/adventure-capitali-ts","owner":"epiphone","description":"Simple implementation of the Adventure Capitalist game","archived":false,"fork":false,"pushed_at":"2020-06-07T13:55:15.000Z","size":779,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-14T19:22:46.889Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://epiphone.github.io/adventure-capitali-ts/","language":"TypeScript","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/epiphone.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-11-26T08:22:25.000Z","updated_at":"2022-01-19T00:26:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"211e5025-5cd6-4a0f-98d2-d9b9e2dac321","html_url":"https://github.com/epiphone/adventure-capitali-ts","commit_stats":{"total_commits":23,"total_committers":2,"mean_commits":11.5,"dds":0.04347826086956519,"last_synced_commit":"82cd34eb3f448a5b6355c0102e008567939eb129"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/epiphone%2Fadventure-capitali-ts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/epiphone%2Fadventure-capitali-ts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/epiphone%2Fadventure-capitali-ts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/epiphone%2Fadventure-capitali-ts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/epiphone","download_url":"https://codeload.github.com/epiphone/adventure-capitali-ts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247953091,"owners_count":21023945,"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":[],"created_at":"2024-10-01T13:14:47.643Z","updated_at":"2025-04-09T00:48:31.643Z","avatar_url":"https://github.com/epiphone.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# adventure-capitali-ts\n![](https://github.com/epiphone/adventure-capitali-ts/workflows/CI/badge.svg)\n\nSimple React/TypeScript implementation of the Adventure Capitalist game. Check the live demo at https://epiphone.github.io/adventure-capitali-ts/.\n\nKey parts of the game are found in the following modules:\n- [`src/Model.ts`](src/Model.ts) defines the game state data model,\n- [`src/action.ts`](src/action.ts) lists all the actions or events, and\n- [`src/reducer.ts`](src/reducer.ts) describes how actions transform game state.\n\nThe app uses React's `useReducer` hook (supplemented with [`react-hook-thunk-reducer`](https://github.com/nathanbuchar/react-hook-thunk-reducer/)) for state management in favor of a more full-fledged solution like `redux`. The idea here was to keep dependencies and configuration at a minimum. As a tradeoff we have to lug game state and the `dispatch` method from the root component ([`App.ts`](src/components/App.ts)) down to lower-level components. In an app any bigger than this I'd probably consider biting the bullet and going with `redux`.\n\n## Features\n- Buy and upgrade businesses\n  - Double income collection speed after 25x, 50x, etc upgrades\n  - Use the upper-right corner multiplier to buy multiple upgrades with a single click\n- Collect income from businesses\n- Hire managers to automate income collection\n  - Managers keep collecting income even after closing the tab\n- Responsive UI\n- Basic CI running on Github Actions\n  - build, test and deploy to Github pages\n\n## Future work\n- Visual cues for income collection duration and collection speed doubling\n- Smarter income collection when leaving and returning to the game:\n  - Don't ignore partially finished collections\n  - Pop-up noting how much income was collected while absent\n- Cross-browser testing; only tested on Ubuntu/Android Firefox so far\n- Performance optimization might be warranted (`useCallback` on event handlers etc)\n- Extra features like sound effects and a tutorial would be neat too!\n\n## Setup\n\n[Install `yarn`](https://yarnpkg.com/en/docs/install) and run `yarn install` to setup dependencies.\n\n## Development\n\nThis project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).\n\nAvailable scripts include\n- **`yarn start`** runs the app in development mode in [http://localhost:3000](http://localhost:3000)\n- **`yarn test`** launches the test runner in watch mode\n- **`yarn build`** builds the app for production to the `/build` folder\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fepiphone%2Fadventure-capitali-ts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fepiphone%2Fadventure-capitali-ts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fepiphone%2Fadventure-capitali-ts/lists"}