Card Games - Checking Which Cards Have Already Been Dealt.
So, let's say I wanted to make an online card game. Simple enough, right? I can do the graphics, the server is ready, the faces/profiles (see my Face Maker! ) are decent... but before I begin programming, say, Bridge, I need a little help on dealing the cards.
My first thought was to simply randomly assign a value & suit to each card as it was dealt. Unfortunately, there might be four or five Queen of Hearts by the time I was done dealing.
My second idea was to keep a boolean 'already dealt' array going - whenever a card was randomly selected, the program would check the array to see if it were already dealt. If it had already been dealt, then it would select a different, random card. If it hadn't been dealt, then the card would be dealt, and the boolean array updated.
The problem with the second option is that once you've dealt 51 cards from the deck, the game is probably going to select many, many random cards that will be rejected (because they've already been dealt) before the final card is randomly selected. This makes the poor server work harder than it should.
So... has anyone ever used a better way to deal cards? =)
Urgent - Creating A Card Game With CARDS.DLL, I Dont Know Where To Start!?
hey,
im creating a card game known as * * * *head (or Palace), im considering using this cards.dll file, or cards32.dll for all the images etc. however I do not know how to incorporate it into my project, or exactly what it will do.
This project is really important as its a big chunk of my coursework this year.
Your help would be REALLY appreciated
Iain
Setting Cards In A Rank To Declare Winner In A Card Game
I am writing a card game called Euchre in which trump changes from hearts, clubs, spades, and dimonds in no particular order. The Jack of the declared trump is the highest followed by the Jack of the same color then Ace, King, Queen, 10, and 9 of the chosen suit. Players declare trump before the game begins. My problem is when a person has played a card how do I compare the other players cards to decide who wins? Any suggestions would help thanks.
POS System With Reward System (RFID Card)
HI folks...
I'm currently intend to develop a customer/reward system that capture the amount purchase each time.
The membership card is a RFID card, i will used a desktop reader to read the card.
But the problem is, POS system have been used. So,how am i going to read the amount purchase from the POS system to my reward system. Is not a good pratice to let the cashier to key keyin the amount munaully.
Anyone can give me some advice..? like how to reside the vb system into POS..., or others good method to do it so that cashier have the easy way to do the daily task....
Thanks in advance..
=Elvis=
File System Object And Wild Cards
Hi
Hope someone can help
I am using FSO.getfolder to try and pick up a folder using a wild card.
I have tried to use the
Folder = dir(path & "*", vbdirectory)
but when the directory I am trying to pick up has an all numeric name this returns a preiod "."
And when using
FSO.getfolder(path & "*")
I get a path not found error although
FSO.getfoler(path & "