The JavaScript Goodies Book
Game Scripts
These scripts either play or deal with games as their topics. There are also some scripts that deal with leisure activities, such as music.
- Ships at Sea
A two-player version of a sinking game.
- Peg Solitaire
Jump over one -- take it out. You've played this before -- now try it on your computer (contents in Zip file).
- Bridge
This script will help your game.
- NBA Totals Projection
How will your favorite player do?
- Magic Eightball
Remember that water-filled eightball that would tell you your fortune? Here it is in Java form.
- Magic Eightball Two
This is another version of the magic eightball with a whole lot more graphical support.
- Roundball
This is a basketball animation. Play college or pro (requires NN 4.0).
- Field Goal
Line it up and hopefully kick it through (requires NN 4.0).
- The Right Button
Can you find the button that will light when you click on it? No fair looking at the code.
- Point Guard Stats
How's your favorite player doing? How are you doing? This script will tell you.
- Super Bowl Game
Can you tell me who won, and who lost, the last 31 Super Bowls? (Posted before Super Bowl XXXII).
- Chinese Zodiac
What was the Chinese animal zodiac sign the year you were born?
- Frame-Based Quiz with Timer
You're under the gun on this one.
- Basketball Champ Quiz
How well do you know the champs from seasons past?
- Social Security State
Give the first three numbers of your SS number and this script will tell you the state that issued it. There is no concern about giving the number. The script is self-contained and the first three numbers are basically worthless without the other six.
- Jay's Game
Play this! It's a speed game where you try to check off numbers before time runs out. It's tougher than you think.
- The Maze
You have to play it to believe it.
- Text-Based Quiz
This quiz is more text-based than the other form-based quizzes.
- Random Number Entry
The script picks a random number between 1 and 10. You guess at it. When you get it right -- or after three tries -- you get to go in.
- Get to See Hanson
...or any other rock group. This is a game where you move forward to meet the group.
- Graded Multiple Choice Quiz
This is a quiz that grades itself and places a check or an X if the answer is right or wrong. The only downfall is that the answers are pretty easy to locate before taking the quiz.
- Slots
Play with someone else's money.
- Insult Machine
Tell people what you think. They choose one of four insults and the script delivers.
- Brick
This is a great copy of the old brick game.
- Tic Tac Toe
Two players, one screen.
- Middle School Quiz
A simple quizgame. You can change it to include your own questions, answers, and responses.
- Football
Play football online.
- Baseball
Ditto with baseball.
- French Translator
Use this script to translate a phrase from English to French.
- A Quiz
This is a four-question quiz that grades you. Welcome to high school.
- Find Me!
This is a fun game created by a 12-year-old JavaScript wizard. Find the only working link!
- Blackjack-21
Play the game. I like this script because it calls the dealer "The Idiot." Ever played and felt that way?
- Backspace Race
See if you can get rid of the text before the computer does.
- Find Mr. Hockey
This is a great simple seek-and-find type game.
- Check's Out!
Try to get rid of all the checks. I couldn't do it.
- What's Your Sign?
Enter your birthday and you get your sign.
- Lottery Number Picker
Why play birthdays? Use this script!
- Golf Handicapper
This script figures the USGA handicap index.
- A Mad Lib Game
Try playing!
- Russian Roulette
Someone wins, someone loses -- with a bang!
[Back to the JavaScript Goodies Page]