Code Monkey home page Code Monkey logo

clue's Introduction

Clue

Python implimentation of cluedo

Instillation and Running

Install dependencies by opening up your favorite terminal and navigating to the root directory and run pip install -r requirements.txt and then pip install -e .

To start navigate into the src folder and run python3 __main__.py

Your local config file is stored either in:

  • Windows: C:\Users\your_username\Clue\clue.json
  • Linux: ~/Clue/clue.json

Game Configuration

  • map
    • dimentions
      • x
        • The size of the x dimension.
        • Minimum: 10
        • Maximum: 40
      • y : The size of the y dimention.
        • The size of the y dimension.
        • Minimum: 10
        • Maximum: 40
    • tiles
      • The tile map used for the game
      • Each character has to be referenced once minimum within simple tiles or game tiles, but not both
      • Weapons should be referenced only once
      • Players should be referenced only once
      • Secret doors have to be referenced twice
  • simple tiles
    • Is a list of objects which include char and obj
    • Has to have a reference for each type of object for simple tile
    • char
      • The character the object is associated to
      • Can be any simple tile character used in tiles, not used again in either simple tiles or game tiles
    • obj
      • Has to be one of the including types
      • Types:
        • none
        • tile
        • door
        • secret door
  • game tiles
    • Is a list of objects which include char and obj
    • char
      • The character the object is associated to
      • Can be any game tile character used in tiles, not used again in either simple tiles or game tiles
    • obj
      • Has to be one of the including types
      • Types:
        • room
        • weapon
        • human
        • ai
    • name
      • The name of the object

Development

If you are on windows, install python from https://www.python.org/, be sure to click add to path before clicking install

  1. Clone the repo
  2. Open up powershell / terminal
  3. Navigate to the folder, e.g. cd F:\Repositories\Clue
  4. If on windows, run powershell as admin and run Set-ExecutionPolicy unrestricted and exit ( there may be a potentially better way, please change if found )
  5. Create the venv: python -m venv venv
  6. Activate the venv: ./venv/bin/activate (Linux) or ./venv/Scripts/activate (Win)
  7. Run pip install -r requirements.txt to install the requirements
  8. In the root directory, run pip install -e .

Tah-dah, now you can develop code. Your IDE should automatically switch to using the venv, or show a prompt to switch to it, do that and it should run well. PyCharm automatically switches to it, while in VS Code you need to accept it from a prompt.

clue's People

Contributors

aurora-dot avatar teasniffers avatar tinyboy31 avatar uasaleem avatar venomousmaverick avatar

Watchers

 avatar

clue's Issues

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.