{"id":19872777,"url":"https://github.com/aarush-narang/games","last_synced_at":"2026-04-07T08:02:19.308Z","repository":{"id":38099326,"uuid":"444305976","full_name":"aarush-narang/games","owner":"aarush-narang","description":"includes tictactoe, hangman, rock paper scissors, and guessing games","archived":false,"fork":false,"pushed_at":"2023-02-14T01:07:12.000Z","size":1590,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-07T01:35:29.230Z","etag":null,"topics":["css","django","flask","html","javascript","python","vercel"],"latest_commit_sha":null,"homepage":"https://games.aarushnarang.com","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aarush-narang.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":"2022-01-04T06:09:12.000Z","updated_at":"2025-04-22T05:25:03.000Z","dependencies_parsed_at":"2025-01-11T16:43:18.789Z","dependency_job_id":"32b1836b-699b-4ffa-ad74-577a8b1ec67f","html_url":"https://github.com/aarush-narang/games","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aarush-narang/games","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aarush-narang%2Fgames","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aarush-narang%2Fgames/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aarush-narang%2Fgames/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aarush-narang%2Fgames/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aarush-narang","download_url":"https://codeload.github.com/aarush-narang/games/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aarush-narang%2Fgames/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31504897,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T03:10:19.677Z","status":"ssl_error","status_checked_at":"2026-04-07T03:10:13.982Z","response_time":105,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["css","django","flask","html","javascript","python","vercel"],"created_at":"2024-11-12T16:16:45.265Z","updated_at":"2026-04-07T08:02:19.291Z","avatar_url":"https://github.com/aarush-narang.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Games\n\nCreated using Flask and VanillaJS. Includes Tic-Tac-Toe, Hangman, Rock Paper Scissors, and two types of guessing games. In one, you guess a randomly-generated number by the computer while in the other, the computer guesses your number using a binary search algorithm!\n\n## Installation\n\nUse the package manager [pip](https://pip.pypa.io/en/stable/) to install the following dependencies\n\n- flask\n\nAdditionally, create a .env file in the root directory with the following variables\n- DOMAIN\n    - your local IP address.\n- PORT\n    - the port you want to use.\n    \nThen, change your directory to the `/games/src` directory. To start, type\n\n```bash\npython app.py\n```\nAnd you're finished!\n\n## How to play\n\nClick on any of the 5 modes.\n\n1. Tic Tac Toe\n\n    First player is \"X\" and click on any square. Next player is \"O\" and click on any square that is not occupied. The game will automatically switch between the players. To restart the game, click the `Restart` button. To reset the saved score at the top, click the `Reset Score` button.\n\n2. Hangman\n\n    There are different difficulties you can play on. To switch the difficulty, click the dropdown on the very right of the nav.\n    ![Switch Difficulty Button](./assets/switch_difficulty_hangman.png)\n\n    If you have given up, click the `Reveal Word` button.\n    \n    If you want a new word, click the `Get new word` button.\n\n    If you need a hint, click the `Hint` button. You don't have infinite hints! (# of hints are at the top)\n\n    The number of tries you have is at the top. Good Luck!\n\n3. Rock Paper Scissors\n\n    In this game, you are playing against the computer so, yes, it is based on probability!\n\n    To choose your option, click any of the three `Rock`, `Paper`, or `Scissors` buttons.\n\n    To play again, click the `Play Again` button.\n\n    To reset the saved score at the top, click the `Reset Score` button.\n\n    To change difficulty, click the dropdown in the nav.\n    ![Switch Difficulty Button](./assets/switch_difficulty_rps.png)\n\n4. Guessing Games\n\n    1. You Guess\n\n        Enter the range you want the number to be in between and start guessing numbers in the bottom textbox.\n\n        To reveal the number, click the `Reveal number` button\n\n        To restart, click the `Restart` button.\n\n    2. The Computer Guesses\n\n        Enter the range you will choose a number between and enter your number.\n\n        To restart, click the `Restart` button.\n\n        When you press play, the computer will use a binary search algorithm to find your number!\n\n    For both games you can see what guesses either you have made or the computer has made.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faarush-narang%2Fgames","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faarush-narang%2Fgames","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faarush-narang%2Fgames/lists"}