► |  | Games: Fun Examples

1 | Bundled Games
2 | Implementing New Games
3 | Showing Scribbled Help
4 | Showing Text Help

▼ | 1 | Bundled Games

1.1 | Aces – Solitaire Card Game
1.2 | Go Fish – Kid’s Card Game
1.3 | Crazy 8s – Card Game
1.4 | Blackjack – 21 Card Game
1.5 | Rummy – Card Game
1.6 | Spider – Solitaire Card Game
1.7 | Memory – Kid’s Game
1.8 | Slidey – Picture Puzzle
1.9 | Same – Dot-Removing Game
1.10 | Minesweeper – Logic Game
1.11 | Paint By Numbers – Logic Game
1.12 | Lights Out – Logic Game
1.13 | Pousse – Tic-Tac-Toe-like Game
1.14 | Gobblet – Strategy Game
1.15 | Jewel – 3-D Skill Game
1.16 | Parcheesi – Board Game
1.17 | Checkers – Board Game
1.18 | Chat Noir – Puzzle Game
1.19 | GCalc – Visual λ-Calculus

top← prev up next →

#### 1.15`` Jewel – 3-D Skill Game

Peter Ivanyi

> > > To play Jewel, run the PLT Games program. (Under Unix, it’s called plt-games).

The board is an 8 by 8 array of jewels of 7 types. You need to get 3 or more in a row horizontally or vertically in order to score points. You can swap any two jewels that are next to each other up and down or left and right. The mechanic is to either:

- Click the mouse on the first one, then drag in the direction for the swap.

- Move a bubble using the arrow keys, lock the bubble to a jewel with the space bar, and the swap the locked jewel with another by using the arrow keys. Space unlocks a locked bubble without swapping.

Jewels can only be swapped if after the swap there are at least 3 or more same shape or color in a row or column. Otherwise the jewels return to their original position. There is a clock shown on the left. When it counts down to 0 the game is over. Getting 3 in a row adds time to the clock.

Hit spacebar to start a new game then select the difficulty number by pressing 0, 1, 2, 3, or 0. You can always press ESC to exit. During playing press P to pause the game.

The code is released under the LGPL. The code is a conversion of Dave Ashley’s C program to Scheme with some modifications and enhancements.

Enjoy.

top← prev up next →