<?php /* * AIServer 2 * --- * (C) 2010 Patrick Mennen <*****@*****.**> * --- * view the README for more information regarding the functions and extra commands * and instructions on how to work with this piece of software */ require 'aiserver.class.php'; require 'holdem.php'; # Poker rules: 4 players, $25 amount of cash, big blind $2, small blind $1, a maximum of 1000 hands $poker = new poker(); // Start the Poker module $poker->setRules(4, 25, 2, 1, 1000);
// "AGPLv3". If not, see <http://www.gnu.org/licenses/>. // // Authors: // Loic Dachary <*****@*****.**> // Morgan Manach <*****@*****.**> // require_once 'constants.php'; require_once 'lib_filters.php'; require_once 'poker.php'; $hci_header_showed = false; function hci_header() { require_once _cst_header; } function hci_footer() { require_once _cst_footer; } function no_auth_handler($name, $referer) { header('Location: login.php?name=' . $name . '&referer=' . urlencode($referer)); die; } try { $poker = new poker(_cst_poker_soap_host); } catch (Exception $e) { print "<h3>" . $e->getMessage() . "</h3d>"; die; } $poker->setNoAuthHandler('no_auth_handler'); $poker->setTimeoutCookie(_cst_timeout_cookie);
public function test20_get_empty_image() { $poker = new poker('fakehost'); $poker->login('user', 'password'); $this->assertEquals('', $poker->getPlayerImage($poker->serial)); }