{"id":18361259,"url":"https://github.com/jaiswalchitransh/snake-water-gun-game-in-python","last_synced_at":"2025-04-10T04:24:48.190Z","repository":{"id":220211580,"uuid":"751053283","full_name":"jaiswalchitransh/Snake-Water-Gun-Game-in-Python","owner":"jaiswalchitransh","description":"This Python script implements a Snake, Water, Gun game where the user competes against the computer. The user inputs their choice, and the program randomly selects a choice for the computer. The game function evaluates the choices, determining the winner based on predefined rules. ","archived":false,"fork":false,"pushed_at":"2024-08-28T20:42:56.000Z","size":318,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-15T18:55:42.116Z","etag":null,"topics":["game","game-development","project","python","python-3","python3","snakewatergun-game"],"latest_commit_sha":null,"homepage":"","language":"Python","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/jaiswalchitransh.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-01-31T20:51:50.000Z","updated_at":"2024-08-28T20:42:59.000Z","dependencies_parsed_at":"2024-08-03T20:31:28.428Z","dependency_job_id":"b681cdbd-2bba-4a83-bfb4-31407964d5af","html_url":"https://github.com/jaiswalchitransh/Snake-Water-Gun-Game-in-Python","commit_stats":null,"previous_names":["chitranshjaiswalgit/snake-water-gun-game-in-python"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaiswalchitransh%2FSnake-Water-Gun-Game-in-Python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaiswalchitransh%2FSnake-Water-Gun-Game-in-Python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaiswalchitransh%2FSnake-Water-Gun-Game-in-Python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaiswalchitransh%2FSnake-Water-Gun-Game-in-Python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jaiswalchitransh","download_url":"https://codeload.github.com/jaiswalchitransh/Snake-Water-Gun-Game-in-Python/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248156023,"owners_count":21056754,"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":["game","game-development","project","python","python-3","python3","snakewatergun-game"],"created_at":"2024-11-05T22:32:57.268Z","updated_at":"2025-04-10T04:24:47.904Z","avatar_url":"https://github.com/jaiswalchitransh.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Snake Water Gun Game in Python\n\n## Table of Contents\n- [Project Overview](#project-overview)\n- [Installation](#installation)\n- [Usage](#usage)\n- [Features](#features)\n- [Contribution](#contribution)\n\n\n## Project Overview\nThe Snake, Water, Gun game implemented in Python allows a user to play against the computer. It's a simple hand game where choices (Snake, Water, Gun) determine the outcome based on predefined rules.\n\n\n## Installation\nThis project requires Python 3.12.1 or later.\nTo set up the project:\n1. Ensure Python 3.12.1 or a later version is installed on your system. You can download Python from [python.org](https://www.python.org/downloads/).\n2. Clone or download the repository to your local machine.\n\n         git clone https://github.com/jaiswalchitransh/Snake-Water-Gun-Game-in-Python.git\n\n3. Open the project in your preferred Python environment (e.g., IDE or terminal).\n4. Run the script (`game.py`) and observe the output.\n\n\n## Usage\nRun the script:\n\n      python game.py\n  \nFollow the prompts to enter your choice (0 for Snake, 1 for Water, 2 for Gun) when prompted.\n\n\n## Features\n- **Random Selection**: The computer randomly selects its choice (Snake, Water, Gun).\n- **Outcome Determination**: The game function compares the user's choice against the computer's choice and determines if the user won, lost, or it's a draw.\n- **Score Representation**: Returns 0 for a draw, -1 for a loss, and 1 for a win.\n- **User Interaction**: Provides clear feedback on the user's choice, the computer's choice, and the game result.\n\n\n## Contribution\nI, **[Chitransh Jaiswal](https://www.linkedin.com/in/jaiswalchitransh/)** developed this Project Individually. I was responsible for all aspects of the project, including design, development, testing, and documentation.\nContributions to improve the efficiency, readability, or functionality of the code are welcome. To contribute:\n1. Fork the repository.\n2. Create a new branch (`git checkout -b feature/your-feature`).\n3. Make your changes.\n4. Commit your changes (`git commit -am 'Add some feature'`).\n5. Push to the branch (`git push origin feature/your-feature`).\n6. Create a new Pull Request.\n\nPlease ensure your contributions adhere to the coding standards and follow the existing style and structure.\n\n---\n\nThank you for your interest in the Snake, Water, Gun Game!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaiswalchitransh%2Fsnake-water-gun-game-in-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaiswalchitransh%2Fsnake-water-gun-game-in-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaiswalchitransh%2Fsnake-water-gun-game-in-python/lists"}