Merge pull request #10 from nealey/mine
Shuffle files around: keep your campsite neat and tidy
15
README.md
|
@ -25,6 +25,21 @@ Please check out [the overview](doc/overview.md)
|
|||
for details.
|
||||
|
||||
|
||||
Getting Started Developing
|
||||
-------------------------------
|
||||
|
||||
$ git clone $your_puzzles_repo puzzles
|
||||
$ python3 tools/devel-server.py
|
||||
|
||||
Then point a web browser at http://localhost:8080/
|
||||
and start hacking on things in your `puzzles` directory.
|
||||
|
||||
|
||||
Running A Production Server
|
||||
====================
|
||||
|
||||
XXX: Update this
|
||||
|
||||
How to set it up
|
||||
--------------------
|
||||
|
||||
|
|
9
TODO.md
|
@ -1,9 +0,0 @@
|
|||
* Scoreboard refresh
|
||||
|
||||
Test:
|
||||
|
||||
* awarding points
|
||||
* points already awarded
|
||||
* bad team hash
|
||||
* category doesn't exist
|
||||
* puzzle doesn't exist
|
14
kothd
|
@ -1,14 +0,0 @@
|
|||
#! /bin/sh
|
||||
|
||||
cd ${1:-$(dirname $0)}
|
||||
KOTH_BASE=$(pwd)
|
||||
|
||||
echo "Running koth instances in $KOTH_BASE"
|
||||
|
||||
while true; do
|
||||
for i in $KOTH_BASE/*/assigned.txt; do
|
||||
dir=${i%/*}
|
||||
$dir/bin/once
|
||||
done
|
||||
sleep 5
|
||||
done
|
Before Width: | Height: | Size: 46 KiB After Width: | Height: | Size: 46 KiB |
Before Width: | Height: | Size: 48 KiB After Width: | Height: | Size: 48 KiB |
Before Width: | Height: | Size: 51 KiB After Width: | Height: | Size: 51 KiB |
Before Width: | Height: | Size: 49 KiB After Width: | Height: | Size: 49 KiB |
Before Width: | Height: | Size: 107 KiB After Width: | Height: | Size: 107 KiB |
Before Width: | Height: | Size: 129 KiB After Width: | Height: | Size: 129 KiB |
Before Width: | Height: | Size: 44 KiB After Width: | Height: | Size: 44 KiB |
Before Width: | Height: | Size: 144 B After Width: | Height: | Size: 144 B |
Before Width: | Height: | Size: 64 KiB After Width: | Height: | Size: 64 KiB |
Before Width: | Height: | Size: 197 KiB After Width: | Height: | Size: 197 KiB |
Before Width: | Height: | Size: 236 KiB After Width: | Height: | Size: 236 KiB |
Before Width: | Height: | Size: 34 KiB After Width: | Height: | Size: 34 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 52 KiB After Width: | Height: | Size: 52 KiB |
|
@ -4,9 +4,9 @@ import cgi
|
|||
import glob
|
||||
import http.server
|
||||
import mistune
|
||||
import moth
|
||||
import os
|
||||
import pathlib
|
||||
import puzzles
|
||||
import socketserver
|
||||
import sys
|
||||
import traceback
|
||||
|
@ -27,7 +27,7 @@ def page(title, body):
|
|||
<html>
|
||||
<head>
|
||||
<title>{}</title>
|
||||
<link rel="stylesheet" href="/files/www/res/style.css">
|
||||
<link rel="stylesheet" href="/files/src/www/res/style.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="preview" class="terminal">
|
||||
|
@ -112,7 +112,7 @@ you are a fool.
|
|||
return
|
||||
|
||||
fpath = os.path.join("puzzles", parts[2])
|
||||
cat = puzzles.Category(fpath, seed)
|
||||
cat = moth.Category(fpath, seed)
|
||||
if len(parts) == 3:
|
||||
# List all point values in a category
|
||||
body.append("# Puzzles in category `{}`".format(parts[2]))
|