Skip to content
Snippets Groups Projects
README.md 752 B
Newer Older
  • Learn to ignore specific revisions
  • svbl2022's avatar
    svbl2022 committed
    # schiffe-versenken-multiplayer
    
    ## Installation
    
    
    Create and activate Virtual Environment:
    
    svbl2022's avatar
    svbl2022 committed
    
    
    ```bash
    python3 -m venv .venv
    source .venv/bin/activate
    ```
    
    svbl2022's avatar
    svbl2022 committed
    
    
    Install dependencies:
    
    svbl2022's avatar
    svbl2022 committed
    
    
    ```bash
    pip install -r requirements.txt
    ```
    
    svbl2022's avatar
    svbl2022 committed
    
    
    Sven Blanke's avatar
    Sven Blanke committed
    Run database migrations:
    
    ```bash
    python3 manage.py migrate
    ```
    
    
    Run development server:
    
    svbl2022's avatar
    svbl2022 committed
    
    
    ```bash
    python3 manage.py runserver
    ```
    
    Sven Blanke's avatar
    Sven Blanke committed
    
    ## Usage
    
    1. When the server is startet open the URL the server is running on in your browser.
    2. Choose a game name and enter it in the `Enter a Game Name` field and click on `Start Game`. Now you can place your ships.
    3. Your opponent has to enter the same game name and can also place their ships.
    4. When both players placed their ships and clicked on the `Ready to play` button the game starts.