https://github.com/planetarium/moriarty
An experimental LLM based detective TRPG on the web
https://github.com/planetarium/moriarty
Last synced: 10 months ago
JSON representation
An experimental LLM based detective TRPG on the web
- Host: GitHub
- URL: https://github.com/planetarium/moriarty
- Owner: planetarium
- Created: 2024-08-28T08:05:55.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-24T05:43:37.000Z (over 1 year ago)
- Last Synced: 2025-01-21T03:11:17.828Z (12 months ago)
- Language: C#
- Size: 172 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Moriarty
## Overview
Moriarty is an experimental text-based game, guessing murderer of fictional crime scene.
Content creation and game playing are supported LLM, thorugh [Semantic Kernel][].
[Semantic Kernel]: https://github.com/microsoft/semantic-kernel
## Prerequistes
- [.NET][] SDK 8.0+
- [dotnet-ef][]
- [OpenAI][] API Key
[.NET]: https://dotnet.microsoft.com/en-us/
[dotnet-ef]: https://www.nuget.org/packages/dotnet-ef
[OpenAI]: https://openai.com/
## How to run (for devleopment)
1. Set OpenAI API key to `dotnet user-secrets` as below.
```bash
$ dotnet user-secrets init --project Moriarty.Web
$ dotnet user-secrets set --project Moriarty.Web "OpenAI:ApiKey" ""
```
2. (Optional) Change path of SQLite database file.
```bash
$ export ConnectionStrings__DefaultConnection="Data Source="
```
3. Initialize database by `dotnet ef`
```bash
$ dotnet-ef --project Moriarty.Web database update
```
4. Build and run
```bash
dotnet run --project Moriarty.Web
```
5. Check the `http://localhost:5229` by your preferred web browser.