{"id":17356549,"url":"https://github.com/luisepkt/bullsandcows","last_synced_at":"2026-05-04T03:35:18.873Z","repository":{"id":243518799,"uuid":"812653683","full_name":"luisePkt/BullsAndCows","owner":"luisePkt","description":"bulls and cows game, which can be played directly on the console","archived":false,"fork":false,"pushed_at":"2024-06-09T14:28:40.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-27T15:53:46.889Z","etag":null,"topics":["console-application","nodejs","readline-sync"],"latest_commit_sha":null,"homepage":"","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/luisePkt.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":"2024-06-09T14:03:33.000Z","updated_at":"2024-08-15T10:26:20.000Z","dependencies_parsed_at":"2024-06-09T15:38:15.168Z","dependency_job_id":null,"html_url":"https://github.com/luisePkt/BullsAndCows","commit_stats":null,"previous_names":["luisepkt/bullsandcows"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/luisePkt/BullsAndCows","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luisePkt%2FBullsAndCows","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luisePkt%2FBullsAndCows/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luisePkt%2FBullsAndCows/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luisePkt%2FBullsAndCows/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/luisePkt","download_url":"https://codeload.github.com/luisePkt/BullsAndCows/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luisePkt%2FBullsAndCows/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32593944,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T22:12:39.696Z","status":"online","status_checked_at":"2026-05-04T02:00:06.625Z","response_time":58,"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":["console-application","nodejs","readline-sync"],"created_at":"2024-10-15T18:57:15.549Z","updated_at":"2026-05-04T03:35:18.859Z","avatar_url":"https://github.com/luisePkt.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bulls and Cows\n\n## Introduction\n\nWelcome to \"Bulls and Cows\", a captivating game of deduction that combines strategy and chance. Developed with JavaScript, this game runs directly in your console and offers three levels of difficulty: Easy, Medium, and Difficult. Regardless of your experience level, \"Bulls and Cows\" promises an engaging and intellectually stimulating gaming experience.\n\n## Prerequisites\n\nBefore you can start playing, you need to install `readline-sync`. This package is essential for the game's interaction with the console. To install it, open your terminal and run:\nbash npm install readline-sync\n\nEnsure you have Node.js installed on your system. If you haven't installed Node.js yet, you can download it from [Node.js official website](https://nodejs.org/).\n\n## Getting Started\n\nWith `readline-sync` installed, follow these steps to launch the game:\n\n1. Navigate to the directory where you downloaded the game files.\n2. Start the game by running `node index.js`.\n\n## Gameplay\n\nYour adventure begins with a personalized greeting message. You'll be asked to input your name; if you prefer not to, you'll be identified as \"Guest\" throughout the game.\n\n### Levels\n\n\"Bulls and Cows\" includes three levels of increasing difficulty:\n\n- **Easy**: Ideal for newcomers or those seeking a leisurely gaming session.\n- **Medium**: Offers a steeper challenge, suitable for intermediate players.\n- **Difficult**: Designed for experienced players, this level tests your guessing abilities to the fullest.\n\n### Rules\n\nThe objective is to accurately predict a four-digit number composed exclusively of unique digits. Each incorrect guess receives feedback indicating how close you are to the correct answer:\n\n- **Bulls**: Represents digits that are present in the correct position and match the guessed digit.\n- **Cows**: Indicates digits that are part of the secret number but positioned incorrectly.\n\nFor instance, if the secret number is `1234` and you guess `1122`, you'd receive 1 bull (for the `2`) and 2 cows (for the `1`s).\n\n### Progress Tracking\n\nEach round concludes with a summary of your performance, detailing:\n\n- The level played.\n- The current game number (e.g., 1st game, 2nd game, etc.).\n- The total number of attempts made thus far.\n\nUpon completion, you'll be addressed as either \"Guest\" or by your chosen name, signifying the conclusion of your gaming session.\n\n## Conclusion\n\nWhether you're new to \"Bulls and Cows\" or a returning enthusiast, we hope you find the strategic challenges and engaging gameplay rewarding. Enjoy your guessing journey, and may fortune favor your efforts!\n\n## Contact\n\nShould you have any questions, suggestions, or need assistance, feel free to reach out.\n\n## Preview\n![preview](preview/preview.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluisepkt%2Fbullsandcows","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluisepkt%2Fbullsandcows","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluisepkt%2Fbullsandcows/lists"}