Omnimaga

General Discussion => Technology and Development => Computer Projects and Ideas => Topic started by: nemo on January 28, 2011, 10:48:22 pm

Title: FreeCell
Post by: nemo on January 28, 2011, 10:48:22 pm
i've recently took a liking to FreeCell and decided that since it isn't too complicated a game and i was a little bit over my head with Juggernaut, i'm going to make it in java. all of the cards can be moved in arbitrary sized groups to other columns. no game-play is implemented yet, but the roots are there. also, in the screenshot there's a 6 and 5 that are floating. my mouse was there, but was taken out for the screenshot. drag-and-drop is how it's played.
Title: Re: FreeCell
Post by: jnesselr on January 28, 2011, 11:02:52 pm
It looks nice. I would like to learn from the source-code.
Title: Re: FreeCell
Post by: nemo on January 28, 2011, 11:10:33 pm
It looks nice. I would like to learn from the source-code.

thanks, the source is attached since this isn't for a project or contest or anything. the only new thing i've implemented is a little bit of gameplay. when you pick up a stack of cards, they must be alternating color and in increasing order. i've added a comment as to where this occurs so if you want you can take that part out.
the image of the cards is also attached.

edit: in hindsight, my method names are pretty worthless.
Title: Re: FreeCell
Post by: DJ Omnimaga on January 28, 2011, 11:42:55 pm
Looks cool, I'm not a big card game fan, but hopefully some people here will like it. :)