Skip to content
A tool for drafting maps for SpyParty tournament matches.
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config update configuration for scl season 5 Feb 23, 2019
draft
static update dependencies for security purposes; fix one more png leftover Feb 22, 2019
templates UI upgrades (#19) May 5, 2018
.gitignore
Dockerfile
LICENSE Create LICENSE Dec 24, 2015
Procfile
README.md
SpyPartyDraft.py
config.json
requirements.txt
room.py
test.py
wsgi.py Refactored code Apr 14, 2016

README.md

SpyPartyDraft

This is a tool designed for running web-based drafts for SpyParty tournaments. I wrote this mostly as an experiment with WebSockets (and as a reminder that I should not be anywhere near front-end HTML code because I can't make things pretty). Turned out pretty well for just a quick experiment. The code definitely needs some cleanup and there's a few TODO things I'd like to accomplish, but for now, I'm pretty happy.

This project was built in Python and JavaScript. For Python, I am using the Flask microframework (my first project with that!) and the Flask-SocketIO add-on. The JavaScript code uses JQuery (of course), Bootstrap (not that you could tell by looking at it), and socket.io for web sockets. I didn't really look up any best practices or anything because I was on vacation when I did this ("why not code on vacation?" I always say) and just kind of tried to figure out everything for myself. I would definitely organize things a LOT better if I were to do it all again.

Running Locally

You shouldn't have too much trouble running this locally if you'd like. Clone this repo, install all the dependencies using pip install -r requirements.txt (probably want to do this in a virtualenv), then just python SpyPartyDraft.py

TODO List

  1. A not-terrible UI
  2. Some display bugs
  3. Massive code cleanup
  4. Ability to rejoin draft in progress

Contact the author

Best way to get a hold of me is on Twitter @LtHummus

Thank you list

  • aforgottentune -- For help with testing and fixing my typos
  • checker -- For making the awesome game SpyParty
  • KrazyCaley -- For creating the SpyParty Competitive League
  • MathMan7 -- for contributing some code cleanup of my terrible code
  • WarningTrack -- For the awesome CSS
  • sgnurf -- For the contribution to support multiple draft types
  • Everyone in the SpyParty community -- For being awesome (and the Canada of online communities)
  • Paradise Village in Nuevo Vallarta, Nayarit, Mexico -- Because why waste a good vacation without doing some coding?
You can’t perform that action at this time.