/jungle-ctf

Portal for CTF type event (July 2022)

Primary LanguageCSS

Escalade

Portal for Escalade held on July 16-17, 2022. There is a board (same as snakes and ladders) numbered from 1 to 80. Initially, the team will be at position 0. First, a die will be rolled, then the team has two options, either to re-roll, which will cost 15 points, or take a sneak peek(which will reveal whether, at the upcoming position, there is a monster or a booster), which will cost 25 points. After that, a question will appear(on a random basis), and the team has to answer that question to move forward. Answering a question correctly will reward 10 points and the player moves forward thhe number of places that appeared on the die. Points will not be rewarded for answering the same question multiple times. The team can take one hint per question(which will cost 10 points). If a team encounters a monster at any position, they will step down to a specified position. If the team encounters a booster, they will move up to a specific position.

Tech Stack

Client: HTML, CSS, JavaScript

Server: Python, Django

Database: SQLite

Run Locally

Clone the project

  git clone https://github.com/creative-computing-society/jungle-ctf.git

Go to the project directory

  cd jungle-ctf

We recommend you to use virtual environment

  python -m venv env

Activate virtual environment

  For Windows PowerShell

    env/Scripts/activate.ps1

  For Linux and MacOS

    source env/bin/activate

Install dependencies

  pip install -r requirements.txt

Add Security Key : Go to project's settings.py file and change the value of SECURITY_KEY variable to desired security key.

Run Migrations

 python manage.py makemigrations
 python manage.py migrate

Start the server

  python manage.py runserver

Endpoints

  • / - Landing page
  • register/ - For registration of team
  • start/ - Start the game
  • play/ - Main gameplay page
  • leaderboard/ - Leaderboard
  • rulebook/ - Rulebook
  • login/ - Login
  • logout/ - Logout

Team