{"id":20601674,"url":"https://github.com/rolling-scopes-school/guessing-game","last_synced_at":"2025-05-15T02:10:14.322Z","repository":{"id":38483674,"uuid":"80210493","full_name":"rolling-scopes-school/guessing-game","owner":"rolling-scopes-school","description":"Guessing game tests","archived":false,"fork":false,"pushed_at":"2024-03-19T21:47:43.000Z","size":155,"stargazers_count":51,"open_issues_count":24,"forks_count":3447,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-14T00:58:27.119Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/rolling-scopes-school.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":"2017-01-27T13:43:50.000Z","updated_at":"2025-03-14T02:44:23.000Z","dependencies_parsed_at":"2024-12-14T13:01:12.678Z","dependency_job_id":"b7b6edab-fd02-48ad-8b68-ff30a18b663d","html_url":"https://github.com/rolling-scopes-school/guessing-game","commit_stats":{"total_commits":9,"total_committers":3,"mean_commits":3.0,"dds":0.4444444444444444,"last_synced_commit":"7f311e32f6ba2a84791c044baca6c10a7d5964d1"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rolling-scopes-school%2Fguessing-game","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rolling-scopes-school%2Fguessing-game/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rolling-scopes-school%2Fguessing-game/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rolling-scopes-school%2Fguessing-game/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rolling-scopes-school","download_url":"https://codeload.github.com/rolling-scopes-school/guessing-game/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254259386,"owners_count":22040821,"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-11-16T09:11:38.834Z","updated_at":"2025-05-15T02:10:09.308Z","avatar_url":"https://github.com/rolling-scopes-school.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Guessing game\n\n---\n⚠️ DO NOT SUBMIT PRS WITH SOLUTIONS TO THIS REPO ⚠️\n\n### Description\n\nYour task is to implement `GuessingGame` class\n\n#### Methods:\n\n##### `setRange(min, max)`\nthis method accepts min and max value of range of number to guess\n\n##### `guess()`\nthis method returns solution candidate (you make an assumption based on range and previous assumptions)\n\n##### `lower()`\nthis method is called if prev call of `guess()` returned number which is greater than answer\n\n##### `greater()`\nthis method is called if prev call of `guess()` returned number which is lower than answer\n\nYour implementation should use [binary search algorithm](https://en.wikipedia.org/wiki/Binary_search_algorithm) under the hood to pass all tests\n\n### Prerequisites\n1. Install [Node.js](https://nodejs.org/en/download/)   \n2. Fork this repository: https://github.com/rolling-scopes-school/guessing-game/\n3. Clone your newly created repo: https://github.com/\u003c%your_github_username%\u003e/guessing-game/  \n4. Go to folder `guessing-game`  \n5. To install all dependencies use [`npm install`](https://docs.npmjs.com/cli/install)  \n6. Run `npm test` in command line or you can run tests in browser with `npm start` and open http://localhost:8080\n7. You will see the number of passing and failing tests. 100% of passing tests is equal to 100p in score  \n\n---\n\n### Submit to [rs app](https://app.rs.school)\n1. Open [rs app](https://app.rs.school) and login\n2. Open `RS APP` and click `Auto Test`\n3. Select your task (guessing-game)\n4. Press the submit button and enjoy\n\n### Notes\n1. We recommend you to use nodejs of version 14 or lower. If you using any of features that does not supported by node v10, score won't be submitted.\n2. Please be sure that each of your test in limit of 30sec.\n\n© [lesnitsky](https://github.com/lesnitsky)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frolling-scopes-school%2Fguessing-game","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frolling-scopes-school%2Fguessing-game","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frolling-scopes-school%2Fguessing-game/lists"}