playMaker

Author Topic: Card Game  (Read 4289 times)

qholmes

  • 1.2 Beta
  • Hero Member
  • *
  • Posts: 509
Card Game
« on: August 31, 2011, 11:26:42 PM »
Has anyone ever done a card game with PM?

I am thinking of doing one and was just looking for some tips before i start doing it the wrong way...  :P

Trying to think of how the data structure of the deck or multi deck would work and how best to keep track of a shuffled deck or multi deck stack?

Q

Damian

  • 1.2 Beta
  • Full Member
  • *
  • Posts: 188
    • Permaximum Betty
Re: Card Game
« Reply #1 on: September 01, 2011, 11:18:13 AM »
Would be nice to know ;D

I guess an array with the card and then an array what the play have that point to the first array.
That way you will keep track on every card.
Then it will depend on what type of game you plan to do.
But I guess you can do it many ways

qholmes

  • 1.2 Beta
  • Hero Member
  • *
  • Posts: 509
Re: Card Game
« Reply #2 on: September 01, 2011, 11:41:09 AM »
But how do i do Arrays... i though i knew but i do not it seems....

So if anyone knows how to do Arrays in PM that would be awesome.. I will share when i am done.

Q

Damian

  • 1.2 Beta
  • Full Member
  • *
  • Posts: 188
    • Permaximum Betty
Re: Card Game
« Reply #3 on: September 01, 2011, 12:34:00 PM »
No thats true. I dont either ;D
I still needs that action for is one basic thing you use when dealing with data.

qholmes

  • 1.2 Beta
  • Hero Member
  • *
  • Posts: 509
Re: Card Game
« Reply #4 on: September 01, 2011, 12:49:23 PM »
Well i seem to have it working now... Yea...

I think i just had some syntax not quite right.. not bad enough to cause errors but not work... And i dropped the FsmInt[] and went with int[]  cant use it as a Fsm variable type anyway... so i did not need to use it. I was just trying to recycle code i had found.

Q