This is my sets game.

Download here.


This is an implementation of the sets game.

This code was written by David Ashley dashxdr@gmail.com
http://www.xdr.com/dash
http://www.linuxmotors.com

This code is released under the terms of the GPL, whatever the latest version
is.

Build under linux by just doing

make

You need the SDL library to be installed.
http://www.libsdl.org

Under mac OSX you can build by doing
make -f Makefile.osx

You need to have the SDL sdl framework installed.

***********************************************************

There are 81 cards in the game. 12 cards are shown at a time. The object
is to identify the sets. The upper left corner of the window shows how
many sets have been discovered out of how many that exist.

Hitting the spacebar redeals 12 cards. The deck is shuffled after every "hand".
It's not so much like the real game, it's just a one player version to let
you practice finding the sets. Hitting the return key will expose all the
undiscovered sets.

Hitting escape exits the game.

Clicking on cards selects them, if 3 cards are highlighted that are a valid
undiscovered set, they'll get marked. The marking appears as digits that
show up on each card. The first set found will have 1's, the next set will
have 2's, etc.

RULES OF THE GAME

Each card has 4 characteristics:
COLOR: Either RED, GREEN or BLUE
NUMBER: Either ONE, TWO OR THREE items
SHAPE: Either CIRCLE, SQUARE or TRIANGLE
TEXTURE: Either EMPTY, SOLID or LINED

Since there are 4 characteristics, each with 3 possibilities, there are
3*3*3*3 or 81 possible combinations.

A "set" is 3 cards together where each characteristic is either the same
for all 3 cards, or different for all three cards. For example:

RED, ONE, CIRCLE, SOLID
RED, TWO, CIRCLE, SOLID
RED, THREE, CIRCLE, SOLID

Forms a set. The color is all the same, the shape is all the same, the
texture is all the same, and the number is different.

All you have to do is identify the sets. Click on each of the 3 cards in a
new set and it'll be marked.

Enjoy!

-Dave

This page has been accessed (e^i) times since 200807030.