{"id":18361258,"url":"https://github.com/jaiswalchitransh/secret-code-game-in-python","last_synced_at":"2025-04-10T04:24:52.390Z","repository":{"id":219590810,"uuid":"749419052","full_name":"jaiswalchitransh/Secret-Code-Game-in-Python","owner":"jaiswalchitransh","description":"This Python script implements a Secret Code Game where users choose between encoding or decoding a message. For encoding, it applies a specific pattern to each word, and for decoding, it attempts to reverse the pattern. The code includes error handling for decoding. ","archived":false,"fork":false,"pushed_at":"2024-08-28T20:43:07.000Z","size":349,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-15T18:55:42.091Z","etag":null,"topics":["game","project","python","python-3","python3","secretcode"],"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-28T14:34:01.000Z","updated_at":"2024-10-09T20:52:05.000Z","dependencies_parsed_at":"2024-02-02T10:29:11.292Z","dependency_job_id":"3f6ad08e-da58-48e2-bdca-249881d594f4","html_url":"https://github.com/jaiswalchitransh/Secret-Code-Game-in-Python","commit_stats":null,"previous_names":["chitranshjaiswalgit/secret-code-game-in-python","jaiswalchitransh/secret-code-game-in-python"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaiswalchitransh%2FSecret-Code-Game-in-Python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaiswalchitransh%2FSecret-Code-Game-in-Python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaiswalchitransh%2FSecret-Code-Game-in-Python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaiswalchitransh%2FSecret-Code-Game-in-Python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jaiswalchitransh","download_url":"https://codeload.github.com/jaiswalchitransh/Secret-Code-Game-in-Python/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248156049,"owners_count":21056758,"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","project","python","python-3","python3","secretcode"],"created_at":"2024-11-05T22:32:57.254Z","updated_at":"2025-04-10T04:24:52.227Z","avatar_url":"https://github.com/jaiswalchitransh.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Secret Code 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 Secret Code Game is a Python script that allows users to encode or decode messages based on a specific pattern. This interactive program provides users with the ability to transform text messages into coded formats and vice versa.\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/Secret-Code-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  \nUpon starting the Secret Code Game, you will be prompted with options to either encode or decode a message:\n- Enter `1` for Coding (encoding).\n- Enter `0` for Decoding (decoding).\n\nDepending on your choice, follow the instructions to input the message you want to process. The script will apply the encoding or decoding rules described below:\n\n### Encoding (Coding)\n\nEach word in the message is transformed based on the following rules:\n- Words with three or more characters are rearranged: the first and last characters are placed at alternating positions, with specific characters ('aix' and 'zof') added.\n- Words with less than three characters are simply reversed.\n\nThe resulting encoded message is printed to the console.\n\n### Decoding\n\nThe script attempts to reverse the encoding process:\n- For words with three or more characters, it adjusts the positions of specific characters to reconstruct the original message.\n- If an error occurs during decoding (such as an IndexError), a warning message is displayed, and the user is prompted to input a valid decoded message.\n\nThe decoded message is then printed to the console.\n\n\n## Features\n- **Interactive Interface**: Users can choose between encoding and decoding modes.\n- **Flexible Input Handling**: Supports various message lengths and characters.\n- **Error Handling**: Alerts users to input errors during decoding.\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 Secret Code Game. Have fun encoding and decoding messages!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaiswalchitransh%2Fsecret-code-game-in-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaiswalchitransh%2Fsecret-code-game-in-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaiswalchitransh%2Fsecret-code-game-in-python/lists"}