public function betRequest($game_state) { if (count($game_state['community_cards']) == 0) { return $this->preFlop($game_state); } else { $rainman = getRainman($game_state); return $this->postFlop($rainman, $game_state); } }
public function testApi() { $result = getRainman(json_decode($this->gameState, true)); $this->assertEquals($result['rank'], 1); $this->assertEquals($result['value'], 6); }