-
Notifications
You must be signed in to change notification settings - Fork 2
Starting a Game
Cassian Godsted edited this page May 23, 2024
·
2 revisions
- Start the server.
# Start the server with Docker
cd wikiraces
docker compose up -d
# Navigate to the admin tool directory.
cd src/admin_tools
- Create your level set using the
generateLevels.py
Python script. This is an interactive script that will guide you through setting up your levels.
python3 generateLevels.py
Would you like to add another level?
> y
Now editing level 1.
Enter the part of the wikipedia url after 'https://en.wikipedia.org/wiki/' for the starting page.
Or, press enter to randomize from the list of levels.
> Start
The start of level 1 will be Start
Enter the part of the wikipedia url after 'https://en.wikipedia.org/wiki/' for the ending page.
Or, press enter to randomize from the list of levels.
> End
The end of level 1 will be End
Would you like to add another level?
> y
Now editing level 2.
Enter the part of the wikipedia url after 'https://en.wikipedia.org/wiki/' for the starting page.
Or, press enter to randomize from the list of levels.
> TechOlympics
The start of level 2 will be TechOlympics
Enter the part of the wikipedia url after 'https://en.wikipedia.org/wiki/' for the ending page.
Or, press enter to randomize from the list of levels.
> Olympic_Games
The end of level 2 will be Olympic_Games
Would you like to add another level?
> n
Would you like to save 2 level(s)?
> y
Written and backed up
Level start and end points were created.
You need to run setTime.py now.
- Set the timings for the event using
setTime.py
Python script. Only run this once you're ready to start the competition! You'll be given the chance to set how long until the competition starts, how long a level should last, and how long should be spent in between levels.
python3 setTime.py
This script is for setting when levels open.
When should the first level start? (in minutes)
> 1
How long should each level last? (in minutes)
> 5
What is the break in between levels? (in minutes)
> 1
First level starts in 1 minutes
Levels last 5 minutes
Students get a 1 minute break
Does this look good? (y/n)
> y
Written to file. Backup made.
- You can then direct users to the website/reverse proxy you've set up for the event. For TechOlympics, this is https://wiki-raecs.interalliance.org.