<?php
// includes class that creates a deck of cards with shuffle methods
include("pokerDeck3.php");
//includes class that evaluates hands
include("phpPokerEngineV3.1.php");
//Run this function to QA various hands
/*
This example shows the functionality of the new code working
You can see a call to get kickers that results in new scores
associated with each kicker - along with a unique text description
see the documentation/release notes for more details.
*/
function testCustomHand ()
{
$evaluateArray = array("AH","JC","9S","7C","KC");
print_r($evaluateArray);
$string = "AHJC9S7CKC";
$chart = count_chars($string,1);
print"<p>\n</p>";
$chartArray = array($chart);
$switchIt = new pokerEngine();
$switchIt->handTest($chartArray,$evaluateArray);
print"<p>\n</p>";
echo $switchIt->getText();
print"<p>This is the kicker1:</p>";
echo $switchIt->getKicker1Text();
print"<p>This is the value of kicker1:</p>";
echo $switchIt->getkicker1Points();
print"<p>This is the kicker2:</p>";
echo $switchIt->getKicker2Text();
print"<p>This is the value of kicker2:</p>";
echo $switchIt->getkicker2Points();
print"<p>This is the kicker3:</p>";
echo $switchIt->getKicker3Text();
print"<p>This is the value of kicker3:</p>";
echo $switchIt->getkicker3Points();
print"<p>This is the kicker4:</p>";
echo $switchIt->getKicker4Text();
print"<p>This is the value of kicker4:</p>";
echo $switchIt->getkicker4Points();
print"<p>This is the total value of the hand with kickers:</p>";
echo $switchIt->getTotalPoints();
}
testCustomHand();
?>