# Poker game

**URL:** <https://forum.kirupa.com/t/poker-game/285766>\
**Category:** Uncategorized\
**Created:** [April 6, 2009, 7:09am UTC](https://forum.kirupa.com/t/poker-game/285766 "2009-04-06T07:09:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sherest](https://avatars.discourse-cdn.com/v4/letter/s/f17d59/32.png) [@sherest](https://forum.kirupa.com/u/sherest)\
**Post date:** [April 6, 2009, 7:09am UTC](https://forum.kirupa.com/t/poker-game/285766/1 "2009-04-06T07:09:55Z")

</div>

Hello! Everybody

I love game, specially card games Taxes holdEM, Blackjack, Solitaire, roulette etc. but how can i create these games in flash using actionscripting 2.0. I search a lot on web, but nothing found useful to start.

help me please. Give me any useful link or tutorial how to create these game.

check out the following, Where i could manage to hold all the cards in the array, but got stuck what to do next? means visually, or game. your help is solicited.

```auto
function newDeck():Array{
	var values:Number = 13;
	//Hearts, Diamonds, Spades, Clubs
	var suits:Array = ['H', 'D', 'S', 'C']; 
	
	var Deck:Array = [];
	
	for(var s=0; s<suits.length; s++){
		for(var v=1; v<=values; v++){
			Deck.push({value:v, suit:suits[s]});
		}
	}
	
	return Deck;
}
var Deck:Array = [];
Deck = newDeck();

for(var i=0; i<Deck.length; i++){
	trace("value: " + Deck*.value +" -- "+ Deck*.suit);
}

```
