{"id":29219598,"url":"https://github.com/stevehill1981/rachel","last_synced_at":"2026-04-21T16:06:35.723Z","repository":{"id":302444836,"uuid":"1012460565","full_name":"stevehill1981/rachel","owner":"stevehill1981","description":"A strategic card game built with Phoenix LiveView. Race to empty your hand while navigating special card effects in this fast-paced family game tradition.","archived":false,"fork":false,"pushed_at":"2025-08-07T15:24:37.000Z","size":1255,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-07T17:36:28.404Z","etag":null,"topics":["card-game","daisyui","elixir","game","phoenix","phoenix-liveview","tailwindcss"],"latest_commit_sha":null,"homepage":"http://localhost:4000/play","language":"Elixir","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/stevehill1981.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":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":"ROADMAP.md","authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-02T11:17:06.000Z","updated_at":"2025-08-07T15:24:40.000Z","dependencies_parsed_at":"2025-07-02T12:40:45.764Z","dependency_job_id":"50041de4-d927-458b-a582-148582964d43","html_url":"https://github.com/stevehill1981/rachel","commit_stats":null,"previous_names":["stevehill1981/rachel"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/stevehill1981/rachel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevehill1981%2Frachel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevehill1981%2Frachel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevehill1981%2Frachel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevehill1981%2Frachel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stevehill1981","download_url":"https://codeload.github.com/stevehill1981/rachel/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevehill1981%2Frachel/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32099231,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-21T11:25:29.218Z","status":"ssl_error","status_checked_at":"2026-04-21T11:25:28.499Z","response_time":128,"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":["card-game","daisyui","elixir","game","phoenix","phoenix-liveview","tailwindcss"],"created_at":"2025-07-03T02:05:50.894Z","updated_at":"2026-04-21T16:06:35.686Z","avatar_url":"https://github.com/stevehill1981.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rachel Card Game\n\nA fast-paced, strategic card game implemented in Phoenix LiveView. Based on a 30-year old family card game tradition, Rachel combines strategy, luck, and careful card management in a beautifully crafted web interface.\n\n## 🎮 Game Overview\n\nRachel is played with a standard 52-card deck where players race to empty their hands while navigating special card effects and strategic decisions. The game features:\n\n- **Strategic gameplay** with special card effects\n- **Smart AI opponents** with intelligent decision-making  \n- **Beautiful animations** and visual feedback\n- **Auto-play features** for smooth gameplay\n- **Responsive design** that works on any device\n\n## 🃏 Game Rules\n\n### Objective\nBe the first player to play all cards from your hand.\n\n### Basic Play\n- Players take turns playing cards that match the suit or rank of the top card\n- Draw a card if you cannot play\n- Special cards trigger unique effects\n\n### Special Cards\n- **2s**: Next player picks up 2 cards (stackable)\n- **7s**: Skip next player's turn (stackable)\n- **Black Jacks** (♠/♣): Next player picks up 5 cards\n- **Red Jacks** (♥/♦): Cancel black jack penalty  \n- **Queens**: Reverse play direction\n- **Aces**: Play on any card and nominate next suit\n\n### Advanced Rules\n- Stack multiple cards of the same rank in one turn\n- Single cards with no stackable options play automatically\n- Pickup penalties are automatically applied when you can't counter\n- Must play when you have a valid move\n\n## 🚀 Getting Started\n\n### Prerequisites\n- Elixir 1.18+\n- Phoenix 1.8.0\n- PostgreSQL (for future features)\n\n### Installation\n\n1. Clone the repository:\n```bash\ngit clone https://github.com/yourusername/rachel.git\ncd rachel\n```\n\n2. Install dependencies:\n```bash\nmix setup\n```\n\n3. Start the Phoenix server:\n```bash\nmix phx.server\n```\n\n4. Visit [`localhost:4000`](http://localhost:4000) to start playing!\n\n## 🎯 Features\n\n### Current Features\n- ✅ Full game implementation with all rules\n- ✅ AI opponents with strategic play\n- ✅ Beautiful, polished UI with smooth animations\n- ✅ Special card visual effects and indicators\n- ✅ Auto-play for single cards\n- ✅ Auto-draw for forced pickups\n- ✅ Turn indicators and game flow visualization\n- ✅ Winner celebration with confetti\n- ✅ Sound effects for game actions\n- ✅ Responsive design for all devices\n\n### Visual Polish\n- 🎨 Glowing effects for special cards\n- 🎨 Smooth card animations and transitions\n- 🎨 AI thinking indicator with animated dots\n- 🎨 Direction flow animations\n- 🎨 Hover effects and visual feedback\n- 🎨 Card entrance animations\n- 🎨 Winner celebration effects\n\n### Planned Features\n- 🔄 Multiple AI difficulty levels\n- 🔄 Tournament mode\n- 🔄 Sound effects and haptic feedback\n\n## 🛠️ Technical Stack\n\n- **Backend**: Elixir with Phoenix Framework\n- **Frontend**: Phoenix LiveView for real-time updates\n- **UI**: Tailwind CSS with custom animations\n- **State Management**: GenServer with ETS backing\n- **AI**: Rule-based decision engine\n\n## 📝 Development\n\n### Project Structure\n```\nlib/\n├── rachel/\n│   └── games/          # Game logic modules\n│       ├── game.ex     # Core game engine\n│       ├── card.ex     # Card representation\n│       ├── deck.ex     # Deck management\n│       ├── ai_player.ex # AI decision logic\n│       └── stats.ex    # Statistics tracking\n└── rachel_web/\n    ├── components/\n    │   └── game_components.ex # Reusable UI components\n    └── live/\n        ├── game_live.ex        # LiveView controller\n        └── game_live_modern.ex # Modern UI template\n```\n\n### Running Tests\n```bash\nmix test\n```\n\n### Code Quality\n```bash\nmix format        # Format code\nmix credo        # Static analysis\nmix dialyzer     # Type checking\n```\n\n## 🎮 How to Play\n\n1. **Starting**: Each player receives 7 cards\n2. **Your Turn**: \n   - Play a card matching suit or rank\n   - Stack multiple cards of the same rank\n   - Draw if you can't play\n3. **Special Effects**: Watch for glowing cards - they have special powers!\n4. **Winning**: First to empty their hand wins!\n\n### Tips\n- Save your Aces for strategic suit changes\n- Stack 2s to increase pickup penalties\n- Use 7s to skip opponents close to winning\n- Red Jacks are your defense against Black Jacks\n\n## 🤝 Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n### Development Setup\n```bash\n# Run the test watcher\nmix test.watch\n\n# Start the dev server with live reload\niex -S mix phx.server\n```\n\n## 📜 License\n\nThis project is licensed under the MIT License.\n\n## 🙏 Acknowledgments\n\n- Based on a beloved card game played with friends and family for over 30 years\n- Built with the amazing Phoenix LiveView framework\n- UI animations inspired by modern card game apps\n- Special thanks to the Elixir community\n\n---\n\nMade with ❤️ and Elixir by Steve Hill","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstevehill1981%2Frachel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstevehill1981%2Frachel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstevehill1981%2Frachel/lists"}