Coder Social home page Coder Social logo

djoko_quest's Introduction

๐Ÿงš๐Ÿปโ€โ™€๏ธ djoko_quest v0.1.1

Welcome to djoko_quest. This repository was made as a birthday present for the real life djoko, Josephine. Djoko_quest is a text based adventure game that makes use of LLM's. Currently it's setup for OpenAI models, but these can be swapped out with other API's or even local models withe relatively low effort.

Note for the real Djoko: You can install and play this game to earn the rest of your presents. Congratulations and good luck!

Quickstart

  1. clone the repository
  2. Create a .env file and add your OpenAI API key: OPENAI_API_KEY = "<ADD YOUR KEY HERE>"
  3. Create a virtual environment
  4. Install the required packages: pip install -r requirements.txt
  5. To play the game, run: python main.py

How to play

General setup

  1. Open up a terminal (any terminal)
  2. Navigate to the directory you want to clone djoko_quest to
  3. Run the following command:
git clone https://github.com/JellevanE/djoko_quest.git
  1. To access the directory run: cd djoko_quest or dir djoko_quest
  2. Create a file named .env
  3. Place your OpenAI key in this file: OPENAI_API_KEY = "<ADD YOUR KEY HERE>"
  4. From this point the commands will differ for MacOS / Windows / Linux

Windows

  1. Check your python version (Python 3.10 or newer is preffered): python --version
  2. Create a virtual environment (steps here use .venv but feel free to use conda or somehting else)
  3. If venv is not yet installed run:
    pip install virtualenv
  1. Create your virtual environment:
    virtualenv --python C:\Path\To\Python\python.exe venv
  1. Activate your virtual environment,
  • for Command Prompt:
.\venv\Scripts\activate

If this doesn't work correctly run .venv\Scripts\activate

  • for Powershell:
.venv/Scripts/activate.ps1

If this doesn't work correctly, first run Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process -Forceand then repeat the first command

  1. Install the required packages to your virtual environment
pip install -r requirements.txt
  1. Congratulations, you can now start the game. To play, run:
python main.py

MacOS (speciaal voor djoko)

  1. Navigate to the correct directory (like a dev)
  • Open your terminal
  • For the true experience: right click on the terminal icon and change the profile by going to 'New window with profile' and select Homebrew or Pro.
  • To read your current directory, type: ls and hit enter
  • Navigate through your directories, type: cd Documents/ hit enter and then type cd LIFE/ hit enter again and then type cd bday 2024
  • You are now in the correct folder
  1. Download the game: clone the correct repository from github using the following command:
    git clone https://github.com/JellevanE/djoko_quest.git

Now enter the correct folder by running: cd djoko_quest

  1. Use the correct Python version
export PATH="$(brew --prefix)/opt/python@3/libexec/bin:$PATH"
  1. Create a virtual environment (MAC OS)
python3 -m venv path/to/venv
  1. Activate your virtual environment
source path/to/venv/bin/activate
  1. Install the required packages
pip install -r requirements.txt
  1. Congratulations, you can now start the game. To play, run:
python main.py

djoko_quest's People

Contributors

jellevane avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.