forums

TNT Basic Forums > Games In Progress
Queen of Spades
< Last Thread     Next Thread >
Author
Thread        Post A Reply

02-07-2009 22:19

Posted by:
raddakar

Location:
Montreal

Click Here to Email raddakar   Find more posts by raddakar

A game I made. Not finished yet, I plan to add some features and fix some bugs before releasing it as a "finished product".
It's a game of the card game seven and a half. The goal is to get 7 and a half. There is the cards one (ace) to seven and the figure cards. The figures are worth a half (So two halves = 1 :P ). The Queen of Spades is like a joker: it can be worth any card. The program will give the Queen the best value possible for you. (So if you can't win with it, it will have a value of a half)

6 is worth 5$, 6 1/2 is worth 10$, 7 is worth 15$ and 7 1/2 is worth 20$. Anything less and you win nothing, anything more and you lose 20$. By the way, your money can reach the negative.

The controls are simple: up to draw a card, down to stop and count your score.

If you like it, tell me, if you don't, tell me, and if you see bugs, problems, tell me.

http://www.mediafire.com/?ozmmmo25mzm

02-11-2009 04:19

Posted by:
appleide

Click Here to Email appleide   Find more posts by appleide

It launches and gives me a black screen. ><

02-11-2009 18:15

Posted by:
raddakar

Location:
Montreal

Click Here to Email raddakar   Find more posts by raddakar

Wait a bit, it needs to load.

02-15-2009 22:37

Posted by:
swagIT

Location:
Great Wet North (Vancouver)

Find more posts by swagIT

Works great on my machine - nice job!

02-16-2009 00:34

Posted by:
raddakar

Location:
Montreal

Click Here to Email raddakar   Find more posts by raddakar

Thanks.

02-16-2009 05:47

Posted by:
appleide

Click Here to Email appleide   Find more posts by appleide

Okay it works now. (i've must've pressed some other thing whilst loading and it paused)

its pretty cool.

after 20 minutes it crashed and I got:
*** Runtime exception caught ***
Line# : 214
Code : p1card[p1hand] = card[lastcardpick]
Error : Array index out of bounds.

02-16-2009 21:08

Posted by:
raddakar

Location:
Montreal

Click Here to Email raddakar   Find more posts by raddakar

That's because it only shuffles the cards the round after it gets a queen of spades. If you get a queen of spades, and you also pick up the last card, it will try to pick up nothing, so the machine tries to take card 40, which does not exist (The 7 1/2 deck being 40 cards, as an array from 0 to 39). I tried fixing it, making it shuffle also when there is no more cards, but that may result in getting 2 times the same card. So what I may do is make it pick up the cards in the discard pile, but I haven't decided yet.

And also, thanks for telling me you like it.

All times are GMT        Post A Reply

Forum Jump:
< Last Thread     Next Thread >

< Contact Us - TNT Basic >

Powered by: vBulletin Lite Version 1.0.1 Lite
Copyright © Jelsoft Enterprises Limited 2000.