Close

Setting Up Jeopardy

A project log for Game Show Emulator

Play game shows with your Raspberry Pi and some big pushbuttons.

tyspatyspa 01/01/2015 at 15:332 Comments

In 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.

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.

Discussions

Jakob Caspersen wrote 01/18/2015 at 21:41 point

Thank you so much for this, it was just what I was looking for. I've set up the game, and tried it out. It works nicely, but there are some things, that could be better:

1) International characters are not working. For instance, the danish ÆØÅ cannot be displayed properly in the game.

2) Picture questions and questions with sound are not working. Or, perhaps they are, but there are no instructions on how to get them working.

3) It would be nice, if it was possible to add more players than just 3.

4) A "chance question" where one player could bet any amount of his money he desired would be a nice feature.

5) Finally, a final round where the players could bet their money would be nice.

  Are you sure? yes | no

tyspa wrote 02/17/2015 at 23:17 point

So sorry for the late reply, I must not have received a notification for this comment. Here some answers to your questions:
1. The reason international characters don't work is because it is an english font. If you were to change the fonts in /res/fonts to a danish font it would work just fine.
2. I removed the image questions and audio questions in commit fe3d5ef. If you edit the jeoparpy/ui/resmaps.py file back to the original (https://github.com/spadgenske/Jeopardy/blob/fe3d5efe818c087462dabb0ddb04e0e58f51f41c/jeoparpy/ui/resmaps.py) and change the sounds/images paths you can reenable the sounds/images again.
3, 4, and 5. All of this is entirely possible, but would require a decent amount of programming time.

  Are you sure? yes | no