Location: PHPKode > scripts > PHP Poker Engine > php-poker-engine/aPokerGameEngineTestv3.htm
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0049)http://localhost/xampp/aPokerGameEngineTestv3.php -->
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<META content="MSHTML 7.00.5112.0" name=GENERATOR></HEAD>
<BODY>
<P>This is the shuffled deck: </P>Deck Object ( [deck] =&gt; Array ( [0] =&gt; 
8C [1] =&gt; 7S [2] =&gt; 10S [3] =&gt; JC [4] =&gt; JH [5] =&gt; 3D [6] =&gt; 
7H [7] =&gt; 5S [8] =&gt; 9D [9] =&gt; 4S [10] =&gt; 9C [11] =&gt; 6C [12] =&gt; 
7D [13] =&gt; QD [14] =&gt; AH [15] =&gt; AD [16] =&gt; JS [17] =&gt; 3S [18] 
=&gt; 10D [19] =&gt; 8S [20] =&gt; 2D [21] =&gt; 4D [22] =&gt; 6D [23] =&gt; 2S 
[24] =&gt; KS [25] =&gt; 5H [26] =&gt; 3H [27] =&gt; QC [28] =&gt; 4H [29] =&gt; 
6H [30] =&gt; 6S [31] =&gt; KH [32] =&gt; 5C [33] =&gt; JD [34] =&gt; QS [35] 
=&gt; KD [36] =&gt; 9H [37] =&gt; 8D [38] =&gt; AS [39] =&gt; 9S [40] =&gt; 4C 
[41] =&gt; KC [42] =&gt; 2H [43] =&gt; AC [44] =&gt; 5D [45] =&gt; 10C [46] 
=&gt; 7C [47] =&gt; 3C [48] =&gt; QH [49] =&gt; 2C [50] =&gt; 10H [51] =&gt; 8H 
) ) 
<P></P>
<P>This is the array for all pocket hands: </P>Array ( [0] =&gt; Array ( [0] 
=&gt; 8C [1] =&gt; 4S ) [1] =&gt; Array ( [0] =&gt; 7S [1] =&gt; 9C ) [2] =&gt; 
Array ( [0] =&gt; 10S [1] =&gt; 6C ) [3] =&gt; Array ( [0] =&gt; JC [1] =&gt; 7D 
) [4] =&gt; Array ( [0] =&gt; JH [1] =&gt; QD ) [5] =&gt; Array ( [0] =&gt; 3D 
[1] =&gt; AH ) [6] =&gt; Array ( [0] =&gt; 7H [1] =&gt; AD ) [7] =&gt; Array ( 
[0] =&gt; 5S [1] =&gt; JS ) [8] =&gt; Array ( [0] =&gt; 9D [1] =&gt; 3S ) ) 
<P></P>
<P></P>
<P></P>
<P>This is the Flop (including burn cards): </P>Array ( [0] =&gt; 10D [1] =&gt; 
8S [2] =&gt; 2D [3] =&gt; 4D [4] =&gt; 6D [5] =&gt; 2S [6] =&gt; KS [7] =&gt; 5H 
[8] =&gt; 3H ) 
<P></P>
<P>This is the actual flop</P>8S 2D 4D 2S 5H 
<P></P>
<P>This shows each players hands with the flop - the allhand array: </P>Array ( 
[0] =&gt; Array ( [0] =&gt; 8C [1] =&gt; 4S [2] =&gt; Array ( [0] =&gt; 8S [1] 
=&gt; 2D [2] =&gt; 4D [3] =&gt; 2S [4] =&gt; 5H ) ) [1] =&gt; Array ( [0] =&gt; 
7S [1] =&gt; 9C [2] =&gt; Array ( [0] =&gt; 8S [1] =&gt; 2D [2] =&gt; 4D [3] 
=&gt; 2S [4] =&gt; 5H ) ) [2] =&gt; Array ( [0] =&gt; 10S [1] =&gt; 6C [2] =&gt; 
Array ( [0] =&gt; 8S [1] =&gt; 2D [2] =&gt; 4D [3] =&gt; 2S [4] =&gt; 5H ) ) [3] 
=&gt; Array ( [0] =&gt; JC [1] =&gt; 7D [2] =&gt; Array ( [0] =&gt; 8S [1] =&gt; 
2D [2] =&gt; 4D [3] =&gt; 2S [4] =&gt; 5H ) ) [4] =&gt; Array ( [0] =&gt; JH [1] 
=&gt; QD [2] =&gt; Array ( [0] =&gt; 8S [1] =&gt; 2D [2] =&gt; 4D [3] =&gt; 2S 
[4] =&gt; 5H ) ) [5] =&gt; Array ( [0] =&gt; 3D [1] =&gt; AH [2] =&gt; Array ( 
[0] =&gt; 8S [1] =&gt; 2D [2] =&gt; 4D [3] =&gt; 2S [4] =&gt; 5H ) ) [6] =&gt; 
Array ( [0] =&gt; 7H [1] =&gt; AD [2] =&gt; Array ( [0] =&gt; 8S [1] =&gt; 2D 
[2] =&gt; 4D [3] =&gt; 2S [4] =&gt; 5H ) ) [7] =&gt; Array ( [0] =&gt; 5S [1] 
=&gt; JS [2] =&gt; Array ( [0] =&gt; 8S [1] =&gt; 2D [2] =&gt; 4D [3] =&gt; 2S 
[4] =&gt; 5H ) ) [8] =&gt; Array ( [0] =&gt; 9D [1] =&gt; 3S [2] =&gt; Array ( 
[0] =&gt; 8S [1] =&gt; 2D [2] =&gt; 4D [3] =&gt; 2S [4] =&gt; 5H ) ) ) 
<P></P>
<P></P>
<P>all players hands: </P>
<P>This is player: 0 </P>8C 4S 8S 2D 4D 2S 5H
<P></P>
<P>Lets test this hand</P>
<P></P>
<P></P>
<P></P>Two Pair: Eights &amp; Fours
<P></P>
<P>Points: 603.41131313</P>
<P>This is player: 1 </P>7S 9C 8S 2D 4D 2S 5H
<P></P>
<P>Lets test this hand</P>
<P></P>
<P></P>
<P></P>ITS A PAIR OF TWOS!
<P></P>
<P>Points: 50.45070613</P>
<P>This is player: 2 </P>10S 6C 8S 2D 4D 2S 5H
<P></P>
<P>Lets test this hand</P>
<P></P>
<P></P>
<P></P>ITS A PAIR OF TWOS!
<P></P>
<P>Points: 50.46070513</P>
<P>This is player: 3 </P>JC 7D 8S 2D 4D 2S 5H
<P></P>
<P>Lets test this hand</P>
<P></P>
<P></P>
<P></P>ITS A PAIR OF TWOS!
<P></P>
<P>Points: 50.47070613</P>
<P>This is player: 4 </P>JH QD 8S 2D 4D 2S 5H
<P></P>
<P>Lets test this hand</P>
<P></P>
<P></P>
<P></P>ITS A PAIR OF TWOS!
<P></P>
<P>Points: 50.48100713</P>
<P>This is player: 5 </P>3D AH 8S 2D 4D 2S 5H
<P></P>
<P>Lets test this hand</P>
<P></P>
<P></P>
<P></P>!!ITS A 5 HIGH STRAIGHT!!
<P></P>
<P>Points: 1350.50131313</P>
<P>This is player: 6 </P>7H AD 8S 2D 4D 2S 5H
<P></P>
<P>Lets test this hand</P>
<P></P>
<P></P>
<P></P>ITS A PAIR OF TWOS!
<P></P>
<P>Points: 50.50070613</P>
<P>This is player: 7 </P>5S JS 8S 2D 4D 2S 5H
<P></P>
<P>Lets test this hand</P>
<P></P>
<P></P>
<P></P>Two Pair: Fives &amp; Twos
<P></P>
<P>Points: 301.47131313</P>
<P>This is player: 8 </P>9D 3S 8S 2D 4D 2S 5H
<P></P>
<P>Lets test this hand</P>
<P></P>
<P></P>
<P></P>ITS A PAIR OF TWOS!
<P></P>
<P>Points: 50.45070413</P></BODY></HTML>
Return current item: PHP Poker Engine