| 06-21-2005, 07:30 PM | #1 |
There are alot of times I hear people want to do card games, but have difficulty implementing the deck, the cards, the mechanic. Well, I just wrote a quick template for a cardgame. It plays a modified game of war: A deck is shuffled and split in two, half goes to one player, half to player 2. After that the game starts. The game is played in twenty six rounds. Each round the players draw thier top cards, and the player with the card with the greatest face value wins (A>K>Q>J>10>...>2). If they are equal face value, then the card with the better suit wins (S>H>C>D). At the end the totals are tallied and the winner is the player who won the most rounds. The game is completely automated. So you don't have to do anything to play. To play another deck through restart the map. No, I didn't bother including a method of redoing it. I've included commentary on all functions found in the map. So you can open up and read up. It may help. |
| 06-21-2005, 09:29 PM | #2 |
gj, looks cool weaaddar |
| 06-21-2005, 09:35 PM | #3 |
Interesting. I was considering making blackjack way back when. Perhaps if I were ever to actually make it this would come in handy. Neverthless, very good. |
| 06-21-2005, 10:16 PM | #4 |
BlackJack is a nice game to do automated dealer, because the game has very rigid rules and thus a very simple AI and all its interaction could be done on a dialog. Each player is dealt 2 cards, Player than Dealer. First card face down, second face up. Pay out is 2-1 for wins, 3-2 for blackjacks, and 4 times initial for doubledown or splitting. The dealer must stay at 17, and must hit at 16 or below. He cannot doubledown or split. In case of ties the dealer wins. A dealer having blackjack is an instant loss. If you remove the split option (which rarely is strategic unless you get two aces, in which case you split and double down. for a potential of getting double blackjack and stupid amounts of money) from the player, then it would be very simple to implement. |
