-
Setting Up Jeopardy
01/01/2015 at 15:33 • 2 commentsIn this log I will explain how to run Jeopardy on your Raspberry Pi.
Step 1: Download Software
Start by cloning the Jeopardy Pi Edition software:
git clone https://github.com/spadgenske/jeopardy.git
Step 2: Test Run
Change to the jeopardy directory with the command
cd jeopardy
Now, test run the software with the command
python start.py
A small window will pop up asking you to select what game you wish to play. Right now it doesn't matter, all the games are examples. If a big window pops and the Jeopardy logo fades in, the software is working!
Once Pi Edition is displayed under it, press the spacebar to continue onto the rules. Press it again to see the categories. Now, you will be in the game. When a player asks for a clue, the host would double click on that clue. From here, the host can read the clue. After this, it is a race to ring in first. To do so, just press a button. (If no buttons are set up, the 1, 2, and 3 keys will also ring in.) If the player answers correctly, the host will press the spacebar. If the player answers incorrectly, the host will press backspace. If no answer is given, the clock will time out and the player will lose money automatically. If the player answers incorrectly, the other two players have a chance to ring in. If no one rings in, it times out and you go back to the main screen. When the game is over, the host can press the "q" key to show the winner and scroll the credits. Once you are familiar with the controls, you can add your own clues and categories in.
Step 3: Adding Your Own Game
The categories, clues, and players are all text file based. Now I will show you how to edit them to create your own game.
Start by entering the games directory. Believe it or not, where all the games are stored.
cd games
There will be four games in this directory. All of them are examples, so we will start by editing the "Example" game.
cd Example
Add Players to your Game
Now, lets edit the players.
nano players.txt
In the file, each line will be a player. Change the lines to the three players who are playing. Remember, no more than three lines. When you're done, the file should look somewhat like this:
Bob Joe Steve
Add Categories to your Game
To add the five categories, just edit the categories.txt file.
nano categories.txt
Each line is a category. Remember, only 5. No more, no less.Add Clues to your Game
Adding clues is pretty much the same, just more lines.
nano clues.txt
The first 5 lines are to clues to the category on the first line in categories.txt.The next 5 lines are for the category on the second line in categories.txt.
Your get the picture.
Change each line to the clue of your dreams. Once all 25 clues are filled in, your game is complete!
Renaming your Game
At the moment, your game is named "Example". lets change it. Start by going back to the games directory.
cd ..
Now lets rename the directory.mv Example MyNewGameName
Only Four Games?
You can only have four games in the games directory. Any more and the software will ignore them. But you can load more via a flash drive.
Step 4: Tags
When running
python start.py
there are a couple of tags that can be used.- The -f tag puts Jeopardy in full screen.
- The -w tag puts Jeopardy in windowed mode.
- The -d tag puts Jeopardy in debug mode.
- The -s tag skips the intro sequences.
- The --drive tag loads the games from the
/media/flashdrive/games/
Instead of
/home/pi/jeopardy/games/
Final Notes
Congratulations! You just setup Jeopardy on your Raspberry Pi and created a game! Go back and run start.py and instead of example you should see your game. If you have any questions/corrections, please comment so I can fix them immediately.