Game Development Community

Set Wip

by Ryan Ackley · in Torque Game Builder · 09/10/2005 (1:32 am) · 3 replies

I've put together a very simple implementation of the game Set. (Rules for the uninitiated)

jkapgames.com/Set/setImg.jpg

It is a very simple single player version. Click on 3 cards to indicate a set. If it is a set, The three cards will be removed and more dealt in their place. (if you are more interested, or curious to why your chosen cards arent a set, take a peek at the console). Get Stuck? Hit shuffle. That just takes the remaining cards, reshuffles, and deals 12 cards.

What I would like to implement:
A set counter gui: let you know how many sets you have found.
get rid of the "cheater" button :)
Also, run a check every redeal, make sure that there IS a set on the board.
Timer/points for completing a deck.

That sort of thing.

Anyway, the download link is just a zip of the source.
Download
Enjoy, and look for an updated version soon!


Oh, and many thanks to Matt Langley for your help! This glass of JD is for you man!

Edit: while packaging this up, i seem to have borked it up :( Update shortly
Edit2: Fixed. Seems i was using an old install of t2d to test it. Working now.

#1
09/13/2005 (4:23 pm)
Alright, heres my second little demo of Set:
jkapgames.com/Set/demo2.jpg
A few things:
I want to turn the text into a bitmapped font instead, but havent quite figured that one out.

Also, haven't figured out how to turn off the gui editor (where is f10 bound?!)

So what i did was delete everything that wasn't needed (though im not sure i need some of the stuff that was there. Basically, if the folder had dsos, i kept it, but deleted all the gui/cs files.

I know there is more I would have to do to "release" this, (like get the rights to the game "Set" :), add in the GG logos, etc. but I thought you guys might like to see a more polished version (still needs a fair bit of work)

A few known bugs (im working on them, i swear!)

Clicking shuffle after selecting 1 or 2 doesn't clear the "Selected" section.

I'm not quite sure how the end game is going to work... I'm not good enough at set to get all the way down to the final cards.

If you want to know how to play set, go to www.setgame.com/set/rules_set.htm and read up. Remember the magic rule. Makes set a lot easier.

Other than the need for UI improvements (I do UI programming at work, so I don't really look forward to doing it when I come home) and a few bug fixes, I would love to hear any feedback (positive or negative, but be gentle!)
Download

Edit: Does anybody know why main.cs in the root folder doesn't get compiled? You need to remove scripts in order to release the game, but I have yet to see that main.cs get compiled into a dso.
#2
09/13/2005 (6:25 pm)
I've downloaded both versions, it's nice to have the selected images show up in this new version. I was curious if there's always a match, or there are some boards without a match. Technically, on each shuffle you could first have a random "set" loaded and then add random images to the rest of the board. This way the player would know there's at least one set in each play. In fact, you can probably code it so there is ONLY one set in each board - making it even trickier.

The gameplay is pretty straightforward, but I'm sure there are some things you could add to spice it up. Maybe "beat the clock" levels, or advanced levels that have sets of 4 (with a new image of 4 shapes and a new color) instead of three, etc...

I just got T2D earlier this week and am still learning, so I can't offer help with the coding questions. Good luck!
#3
09/13/2005 (7:14 pm)
I wrote a function to verify that there is at least one set on the board, but haven't used it yet, so its not guranteed. I could just use that to make sure that there is a set (and if not, shuffle again).

The game Set is not of my creation (according to setgame.com, it has been around since the 70s). I was introduced to it by a CS prof at my uni, he had us create a Set game for our UI class (thus my interest in the game)

I like the idea of different puzzles (find 10 sets in 5 mins, or 20 in 5 mins for expert or whatever), high score (since it is possible not to match every one of the 81 cards in a set deck), How long it take to get to 27 points (thats the max score) or rank the sets in their difficulity to find and score that way... lots of good stuff there :)

Also, I kind of like the idea of pre-created puzzles (on setgame.com, they have a daily puzzle where there are 12 cards and 6 sets, and your goal is to find them. These could start easy (find 5 of 10 sets) and ramp up in difficulty)

This is just something I'm doing for fun, so would release for free (I spent most of college being an open source advocate :), but think it is an interesting take on the puzzle game genre.

If I really wanted to make it my own, i could change the math behind the cards and create my own "Set" game, but then I would need to create the symbols, and I'm not a great artiste :)

Thanks for your input Steve, I really appreciate it. I'll be making some improvements, if you do like it, keep lookin here!

Oh, and good luck with T2D, this engine is soooo much fun!


edit: Oh, and one thing I also want to change is make it smaller (like bejeweled, not that small per se, but better use of space for sure)