Author Topic: FreeCell  (Read 7933 times)

0 Members and 1 Guest are viewing this topic.

Offline nemo

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1203
  • Rating: +95/-11
    • View Profile
FreeCell
« 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.


Offline jnesselr

  • King Graphmastur
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2270
  • Rating: +81/-20
  • TAO == epic
    • View Profile
Re: FreeCell
« Reply #1 on: January 28, 2011, 11:02:52 pm »
It looks nice. I would like to learn from the source-code.

Offline nemo

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1203
  • Rating: +95/-11
    • View Profile
Re: FreeCell
« Reply #2 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.
« Last Edit: January 28, 2011, 11:38:55 pm by nemo »


Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55941
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: FreeCell
« Reply #3 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. :)