summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2013-09-23 20:29:59 +0200
committeremkael <emkael@tlen.pl>2013-09-23 20:29:59 +0200
commitd2814294c5ce172c1897e0c0601f07a60df7ee49 (patch)
treea41ad8aeb15457a9a968b743d24bafa3e149ddb4
parent02491e2e5171a56f8c7920b23e3638b99f44cce8 (diff)
* lh_10 -> lh_pod
-rw-r--r--bin/lib/OsikaEvaluator.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/lib/OsikaEvaluator.php b/bin/lib/OsikaEvaluator.php
index a53ff7f..c20816f 100644
--- a/bin/lib/OsikaEvaluator.php
+++ b/bin/lib/OsikaEvaluator.php
@@ -190,10 +190,10 @@ class OsikaEvaluator {
if (strlen($index) === 1) {
if ($distribution[$index] >= 3) {
if (isset($strength[$distribution[$index]])) {
- $strength[$distribution[$index]] += ($result['lh'][$index]+$result['lh_plus'][$index]+$result['lh_10'][$index]+$result['lh_short'][$index]);
+ $strength[$distribution[$index]] += ($result['lh'][$index]+$result['lh_plus'][$index]+$result['lh_pod'][$index]+$result['lh_short'][$index]);
}
else {
- $strength[$distribution[$index]] = ($result['lh'][$index]+$result['lh_plus'][$index]+$result['lh_10'][$index]+$result['lh_short'][$index]);
+ $strength[$distribution[$index]] = ($result['lh'][$index]+$result['lh_plus'][$index]+$result['lh_pod'][$index]+$result['lh_short'][$index]);
}
if (isset($length[$distribution[$index]])) {
$length[$distribution[$index]] += $distribution[$index];
@@ -234,7 +234,7 @@ class OsikaEvaluator {
$result = array();
$result['lh'] = array();
$result['lh_plus'] = array();
- $result['lh_10'] = array();
+ $result['lh_pod'] = array();
$result['lh_short'] = array();
$result['lu'] = array();
foreach ($this->_hand as $ind => $suit) {
@@ -247,7 +247,7 @@ class OsikaEvaluator {
}
$result['lh']['total'] = array_sum($result['lh']);
$result['lh_plus']['total'] = array_sum($result['lh_plus']);
- $result['lh_pod']['total'] = array_sum($result['lh_10']);
+ $result['lh_pod']['total'] = array_sum($result['lh_pod']);
$result['lh_short']['total'] = array_sum($result['lh_short']);
$result['lu']['total'] = array_sum($result['lu']);