{"id":43241632,"url":"https://github.com/southpawriter02/rune-rust","last_synced_at":"2026-02-01T11:38:16.324Z","repository":{"id":333603810,"uuid":"1128640334","full_name":"southpawriter02/rune-rust","owner":"southpawriter02","description":null,"archived":false,"fork":false,"pushed_at":"2026-01-28T02:02:56.000Z","size":22097,"stargazers_count":0,"open_issues_count":45,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-28T03:06:25.387Z","etag":null,"topics":["dungeon-crawler","text-based-adventure","text-based-game","text-based-rpg"],"latest_commit_sha":null,"homepage":"","language":"C#","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/southpawriter02.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-01-06T00:08:58.000Z","updated_at":"2026-01-20T03:19:55.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/southpawriter02/rune-rust","commit_stats":null,"previous_names":["southpawriter02/rune-rust"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/southpawriter02/rune-rust","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/southpawriter02%2Frune-rust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/southpawriter02%2Frune-rust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/southpawriter02%2Frune-rust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/southpawriter02%2Frune-rust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/southpawriter02","download_url":"https://codeload.github.com/southpawriter02/rune-rust/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/southpawriter02%2Frune-rust/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28977332,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-01T11:31:13.034Z","status":"ssl_error","status_checked_at":"2026-02-01T11:30:25.558Z","response_time":56,"last_error":"SSL_read: 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":["dungeon-crawler","text-based-adventure","text-based-game","text-based-rpg"],"created_at":"2026-02-01T11:38:15.768Z","updated_at":"2026-02-01T11:38:16.312Z","avatar_url":"https://github.com/southpawriter02.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rune \u0026 Rust\n\nA text-based dungeon crawler video game built with .NET 9, featuring both TUI (Terminal User Interface) and GUI options.\n\n## Features\n\n- **Dual Interface**: Play in the terminal (TUI) or graphical window (GUI)\n- **Dungeon Exploration**: Navigate through rooms, collect items, and battle monsters\n- **Inventory System**: Pick up and manage items\n- **Combat**: Engage in turn-based combat with enemies\n- **Save/Load**: Persist your game progress\n\n## Technology Stack\n\n- **.NET 9** - Runtime platform\n- **Spectre.Console** - Terminal UI rendering\n- **AvaloniaUI** - Cross-platform GUI framework\n- **PostgreSQL** - Database persistence (with in-memory option for development)\n- **Entity Framework Core** - ORM for database access\n- **Serilog** - Structured logging\n- **NUnit** - Unit testing framework\n\n## Architecture\n\nThis project follows **Clean Architecture** principles:\n\n```\nsrc/\n├── Core/\n│   ├── RuneAndRust.Domain/           # Entities, value objects, domain logic\n│   └── RuneAndRust.Application/      # Use cases, interfaces, DTOs\n├── Infrastructure/\n│   └── RuneAndRust.Infrastructure/   # EF Core, repositories, external services\n└── Presentation/\n    ├── RuneAndRust.Presentation.Shared/  # Shared ViewModels\n    ├── RuneAndRust.Presentation.Tui/     # Spectre.Console TUI\n    └── RuneAndRust.Presentation.Gui/     # AvaloniaUI GUI\n```\n\n## Prerequisites\n\n- [.NET 9 SDK](https://dotnet.microsoft.com/download/dotnet/9.0)\n- [Docker](https://www.docker.com/) (optional, for PostgreSQL)\n\n## Getting Started\n\n### 1. Clone the repository\n\n```bash\ngit clone https://github.com/southpawriter02/rune-rust.git\ncd rune-rust\n```\n\n### 2. Start PostgreSQL (optional)\n\nIf you want to use PostgreSQL for persistence:\n\n```bash\ndocker-compose up -d\n```\n\nBy default, the game uses in-memory storage, so this step is optional.\n\n### 3. Build the solution\n\n```bash\ndotnet build\n```\n\n### 4. Run the TUI version\n\n```bash\ndotnet run --project src/Presentation/RuneAndRust.Presentation.Tui\n```\n\n### 5. Run the GUI version\n\n```bash\ndotnet run --project src/Presentation/RuneAndRust.Presentation.Gui\n```\n\n## Game Commands (TUI)\n\n| Command | Description |\n|---------|-------------|\n| `n`, `north` | Move north |\n| `s`, `south` | Move south |\n| `e`, `east` | Move east |\n| `w`, `west` | Move west |\n| `look`, `l` | Look around the room |\n| `inventory`, `i` | View your inventory |\n| `take \u003citem\u003e` | Pick up an item |\n| `attack`, `a` | Attack an enemy |\n| `save` | Save your game |\n| `help`, `h`, `?` | Show help |\n| `quit`, `q` | Quit the game |\n\n## Running Tests\n\n```bash\ndotnet test\n```\n\n## Project Structure\n\n### Domain Layer\n- **Entities**: `Player`, `Room`, `Item`, `Monster`, `Dungeon`, `GameSession`\n- **Value Objects**: `Position`, `Stats`\n- **Services**: `CombatService`\n\n### Application Layer\n- **Interfaces**: `IGameRepository`, `IGameRenderer`, `IInputHandler`\n- **DTOs**: Data transfer objects for UI binding\n- **Services**: `GameSessionService`\n\n### Infrastructure Layer\n- **Repositories**: `InMemoryGameRepository` (PostgreSQL repository in development)\n- **Persistence**: EF Core `GameDbContext`\n\n### Presentation Layers\n- **TUI**: Full game implementation with Spectre.Console\n- **GUI**: Placeholder shell (full implementation planned)\n\n## Configuration\n\nConfiguration is in `appsettings.json`:\n\n```json\n{\n  \"ConnectionStrings\": {\n    \"GameDatabase\": \"Host=localhost;Port=5432;Database=runeandrust;Username=postgres;Password=postgres\"\n  },\n  \"Game\": {\n    \"UseInMemoryDatabase\": true\n  }\n}\n```\n\n## License\n\nThis project is licensed under the GNU General Public License v3.0 - see the [LICENSE](LICENSE) file for details.\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsouthpawriter02%2Frune-rust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsouthpawriter02%2Frune-rust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsouthpawriter02%2Frune-rust/lists"}