Skip to content

JamesHDuffield/electric-sheep

Repository files navigation

Does ChatGPT dream of electric sheep?

Rust Version Rust Version Github Workflow Status Latest Commit

Voight-Kampff meets ChatGPT. A game where you interview an android and make your verdict on whether or not they are dangerous.

Inspired by Philip K. Dick's novel Do Androids Dream of Electric Sheep? and the board game Inhuman Condition.

Play It Now

Screenshot

Development

  • Copy .devcontainer/.env.example to .devcontainer/.env and provide an OpenAI API key
  • Open vscode dev container
  • cargo run
  • cd site && npm run watch to rebuild static site

Database Migration / Seeding

  • diesel migration run or diesel migration redo

To run the migration to fly.io

  • Proxy to the db using fly proxy 5432 -a electric-sheep-db
  • Run the command migration command from inside the dev container: env DATABASE_URL=postgres://electric_sheep:<password>@host.docker.internal:5432/electric_sheep diesel migration run

Schema

  • Regenerate with diesel print-schema > src/schema.rs

Images

Avatars are generated with Stable Diffusion prompt android, portrait, simple shapes, vector art, cyberpunk, blade runner, papers please, cultist simulator.