{"id":28615781,"url":"https://github.com/pieter-rees/pokecatch","last_synced_at":"2025-06-12T02:10:02.362Z","repository":{"id":293135112,"uuid":"983051802","full_name":"Pieter-Rees/pokecatch","owner":"Pieter-Rees","description":"Catch game that uses pokemon api","archived":false,"fork":false,"pushed_at":"2025-05-13T21:02:50.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-13T21:30:41.427Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/Pieter-Rees.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,"zenodo":null}},"created_at":"2025-05-13T19:58:31.000Z","updated_at":"2025-05-13T21:02:54.000Z","dependencies_parsed_at":"2025-05-13T21:40:50.141Z","dependency_job_id":null,"html_url":"https://github.com/Pieter-Rees/pokecatch","commit_stats":null,"previous_names":["pieter-rees/pokecatch"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Pieter-Rees/pokecatch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pieter-Rees%2Fpokecatch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pieter-Rees%2Fpokecatch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pieter-Rees%2Fpokecatch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pieter-Rees%2Fpokecatch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Pieter-Rees","download_url":"https://codeload.github.com/Pieter-Rees/pokecatch/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pieter-Rees%2Fpokecatch/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259382356,"owners_count":22848845,"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":"2025-06-12T02:09:51.326Z","updated_at":"2025-06-12T02:10:02.347Z","avatar_url":"https://github.com/Pieter-Rees.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🐾 Pocket Monster Safari Zone - Terminal Edition\n\nA fun command-line Pocket Monster Safari Zone simulator with a beautiful terminal interface. Explore, encounter wild Pocket Monsters, throw Safari Balls, use bait or mud, and catch 'em all – all from your terminal!\n\n[![Build Status](https://img.shields.io/badge/build-passing-brightgreen)](https://github.com/yourusername/pokecatch/actions)\n[![Version](https://img.shields.io/badge/version-1.0.0-blue)](https://github.com/yourusername/pokecatch/releases)\n[![License](https://img.shields.io/badge/license-MIT-green)](LICENSE)\n\n![screenshot](assets/screenshot.png)\n\n---\n\n## 🎮 Features\n\n### Core Gameplay\n- 🎲 Random wild Pocket Monster encounters (up to Gen 8)\n- 🖼 16-bit Pocket Monster sprites shown in terminal (via `catimg`)\n- 🎯 Advanced catching mechanics with real catch rate formula\n- 🍓 Bait and mud affect Pocket Monster behavior (just like Safari Zone)\n- 🏃 Intelligent fleeing logic based on stats and conditions\n- 📦 Persistent collection saved locally in `data/pokedex.json`\n- 📖 Comprehensive Pocket Monster viewer with detailed stats\n\n### Game Mechanics\n- 🎯 Multiple catching strategies:\n  - Safari Balls for direct capture attempts\n  - Rocks to make Pocket Monsters angry (easier to catch but more likely to flee)\n  - Bait to make Pocket Monsters eat (harder to catch but less likely to flee)\n- 💰 In-game economy with:\n  - Currency earned from successful captures\n  - Shop system for purchasing items\n  - Item inventory management\n- 📊 Detailed status tracking:\n  - Capture statistics\n  - Collection progress\n  - Current inventory\n  - Financial status\n\n### User Interface\n- 🎨 Beautiful terminal UI featuring:\n  - Colorful headers and borders\n  - Pocket Monster-themed icons and emojis\n  - Smooth loading animations\n  - Clear visual hierarchy\n  - Real-time status indicators\n  - Intuitive inventory management\n  - Progress bars and statistics\n  - Helpful tooltips and instructions\n\n---\n\n## 🛠 Requirements\n\nMake sure you have the following installed:\n\n- `bash` (version 4.0 or higher)\n- `curl` (for API requests)\n- `jq` (for JSON processing)\n- `catimg` (for displaying images)\n- `shuf` (usually included with `coreutils`)\n\nTo install `catimg`:\n```bash\nbrew install catimg         # macOS (via Homebrew)\nsudo apt install catimg     # Debian/Ubuntu\n```\n\n## 🚀 Getting Started\n\n1. Clone the repository:\n```bash\ngit clone https://github.com/yourusername/pokecatch.git\ncd pokecatch\n```\n\n2. Initialize the game data:\n```bash\nmake setup\n```\n\n3. Make sure all scripts are executable:\n```bash\nchmod +x bin/* lib/*.sh\n```\n\n4. Run the game:\n```bash\n./bin/pokecatch\n```\n\n## 📁 Project Structure\n\n```\npokecatch/\n├── bin/            # Executable scripts\n│   └── pokecatch   # Main game script\n├── lib/            # Library functions\n│   ├── monster.sh  # Pocket Monster-related functions\n│   ├── items.sh    # Item management\n│   ├── shop.sh     # Shop functionality\n│   ├── status.sh   # Status display\n│   └── style.sh    # UI styling\n├── data/           # Data files\n│   ├── pokedex.json\n│   └── save.json\n├── config/         # Configuration files\n├── tests/          # Test files\n├── Makefile        # Build and installation\n└── README.md\n```\n\n## 🎯 How to Play\n\n### Basic Commands\n- `./bin/pokecatch` - Start the game\n- `make test` - Run the test suite\n- `make clean` - Clean up build artifacts\n\n### Gameplay Flow\n1. Enter the Safari Zone to look for wild Pocket Monsters\n2. When you encounter a Pocket Monster, you can:\n   - Throw a Safari Ball to catch it\n   - Throw a Rock to make it angry (easier to catch but more likely to flee)\n   - Throw Bait to make it eat (harder to catch but less likely to flee)\n   - Run away\n3. Visit the shop to:\n   - Buy Safari Balls\n   - Purchase Rocks\n   - Stock up on Bait\n   - Check your balance\n4. Check your Pocket Monster dex to:\n   - View your collection\n   - See detailed stats\n   - Track completion progress\n5. Monitor your status to:\n   - Track capture statistics\n   - View inventory\n   - Check financial status\n   - See game progress\n\n### Advanced Strategies\n- Use Rocks before throwing Safari Balls for better catch rates\n- Apply Bait when encountering rare Pocket Monsters to prevent fleeing\n- Balance your inventory between different item types\n- Save your currency for important purchases\n- Track which Pocket Monsters you still need to catch\n\n## 🎨 Terminal Requirements\n\nThe game uses ANSI colors and Unicode characters for its interface. Make sure your terminal:\n- Supports ANSI color codes\n- Uses UTF-8 encoding\n- Can display Unicode characters (for icons and emojis)\n- Has a minimum width of 80 characters\n- Has a minimum height of 24 lines\n\n## 🧪 Testing\n\nRun the test suite:\n```bash\nmake test\n```\n\nThe tests cover:\n- Core game mechanics\n- Pocket Monster encounter rates\n- Catch rate calculations\n- Item effects\n- Save/load functionality\n- UI rendering\n- Shop transactions\n- Inventory management\n\n## 🔧 Troubleshooting\n\n### Common Issues\n\n#### Game Won't Start\n- Check all dependencies are installed:\n  ```bash\n  which bash curl jq catimg shuf\n  ```\n- Verify file permissions: `chmod +x bin/* lib/*.sh`\n- Ensure data directory exists: `make setup`\n- Check if game data is initialized: `ls -l data/`\n\n#### Save File Issues\n- If save data is corrupted:\n  - Backup and remove `data/save.json`\n  - Restart the game to create a new save file\n- If items are missing:\n  - Check `data/pokedex.json` for corruption\n  - Verify file permissions\n  - Ensure proper JSON formatting\n\n#### Performance Issues\n- If the game runs slowly:\n  - Check system resources\n  - Verify network connection (for API calls)\n  - Ensure sufficient disk space\n  - Check for background processes\n\n## 📚 Documentation\n\nFor detailed documentation about game mechanics and development:\n- [Game Mechanics](docs/mechanics.md)\n- [Development Guide](docs/development.md)\n- [API Reference](docs/api.md)\n\n## 📝 License\n\nThis project is licensed under the MIT License - see the LICENSE file for details.\n\n## 🙏 Acknowledgments\n\n- Pocket Monster sprites and data from [PokéAPI](https://pokeapi.co/)\n- Inspired by the classic Pocket Monster Safari Zone mechanics\n- Terminal UI design inspired by various CLI games and tools\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpieter-rees%2Fpokecatch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpieter-rees%2Fpokecatch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpieter-rees%2Fpokecatch/lists"}