{"id":16105425,"url":"https://github.com/dinbtechit/aequilibrium-games","last_synced_at":"2025-04-06T02:44:21.621Z","repository":{"id":107166458,"uuid":"346343960","full_name":"dinbtechit/aequilibrium-games","owner":"dinbtechit","description":null,"archived":false,"fork":false,"pushed_at":"2021-03-30T19:34:07.000Z","size":18475,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-12T08:56:21.551Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/dinbtechit.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":"2021-03-10T12:11:18.000Z","updated_at":"2021-03-30T19:34:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"a43b1a56-e9b3-4190-8620-2a3e426fcae9","html_url":"https://github.com/dinbtechit/aequilibrium-games","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dinbtechit%2Faequilibrium-games","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dinbtechit%2Faequilibrium-games/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dinbtechit%2Faequilibrium-games/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dinbtechit%2Faequilibrium-games/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dinbtechit","download_url":"https://codeload.github.com/dinbtechit/aequilibrium-games/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247426985,"owners_count":20937197,"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-09T19:09:32.725Z","updated_at":"2025-04-06T02:44:21.599Z","avatar_url":"https://github.com/dinbtechit.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AEquilibrium Games\n\nCheckout the working app here: \n-  Part 1 Castle Company =\u003e https://aequilibrium-games.web.app/castle\n-  Part 2 Transformers Battle =\u003e https://aequilibrium-games.web.app/transformers\n\n## Part 1: The Castle Company\n\nAequilibrium is in the business of building castles (we really aren’t, but let’s pretend). Now, we also believe in\nquality aesthetics, so we only want to build castles in two types of places:\n\n1. Peaks \n2. Valleys \n\nLet’s say you have an array of integers that describes a stretch of land, where each integer represents\nthe current height of the land. Can you write a function that reads that array and returns the number of castles that\nAequilibrium should build on that stretch of land? You can write this solution in whatever language you like and provide\na way to test it. You can make the following assumptions:\n\nYou can always build a castle at the start of the array, provided it is non-empty \n\n- You can always build a castle at the end of the array, provided it is non-empty\n- We only want to build one castle per peak or valley. \n- A peak is an integer or series of integers that is above the immediately preceding and following ints. For example, in the\nsequence `[2,6,6,6,3]` the sequence of three 6s is a peak.  \n- A valley is an integer or series of integers that is below the immediately preceding and following ints. \n  For example, in the sequence `[6,1,4]` the \"1\" would be a valley. \n \n### Testing Castle Company Using Design Mode:\n\nCheckout the working app here -\u003e https://aequilibrium-games.web.app/castle\n\nDraw the peek and valleys please be aware the 1D array is displayed as (nxn) grid. The \"number of castles\" that can be built \nis displayed on the left-hand side corner of the screen.\n\n![](readme/castle-design-mode.gif)\n\nAlternately you can pass in the array using the numeric input. As shown below.\n\n![](readme/castle-input-mode.gif)\n\nIf you like to verify them using unit test cases run the following command on the projects root directory:\n```bash\nng test\n```\n\n### Part 2: The Transformation Company\n\nCheckout the working app here  -\u003e https://aequilibrium-games.web.app/transformers\n\n\n\n\nTo modify the input autobot and decepticons array run the project locally and update the\njson file located at `src/assets/data/transformers.json`\n\n```json\n[\n    [\"Soundwave\", \"D\", 8,9,2,6,7,5,6,10],\n    [\"Bluestreak\", \"A\", 6,6,7,9,5,2,9,7],\n    [\"Hubcap\", \"A\", 4,4,4,4,4,4,4,4]\n]\n```\n\n\nIf you like to verify them using unit test cases run the following command on the projects root directory:\n```bash\nng test\n```\n---\nThis project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 11.0.1.\n\n## Development server\n\nRun `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change\nany of the source files.\n\n## Code scaffolding\n\nRun `ng generate component component-name` to generate a new component. You can also\nuse `ng generate directive|pipe|service|class|guard|interface|enum|module`.\n\n## Build\n\nRun `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag\nfor a production build.\n\n## Running unit tests\n\nRun `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).\n\n## Running end-to-end tests\n\nRun `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).\n\n## Further help\n\nTo get more help on the Angular CLI use `ng help` or go check out\nthe [Angular CLI Overview and Command Reference](https://angular.io/cli) page.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdinbtechit%2Faequilibrium-games","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdinbtechit%2Faequilibrium-games","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdinbtechit%2Faequilibrium-games/lists"}