Sha256: 88b436e9443ba98a4a361d6f026f621ac7959ed4f478c1b708d645a4c3af67a0
Contents?: true
Size: 931 Bytes
Versions: 14
Compression:
Stored size: 931 Bytes
Contents
/* Copyright (C) 2013 by the Computer Poker Research Group, University of Alberta */ #include "test_helper.h" Game init_kuhn_poker_game_def() { Game kuhn_def; kuhn_def.bettingType = limitBetting; kuhn_def.numRounds = 1; kuhn_def.maxRaises[ 0 ] = 1; kuhn_def.numSuits = 1; kuhn_def.numRanks = 4; kuhn_def.numHoleCards = 1; kuhn_def.numBoardCards[ 0 ] = 0; kuhn_def.numPlayers = 3; return kuhn_def; } MatchState init_match_state( const Game const* game_def, uint8_t position, uint8_t card, const enum ActionType const* actions, size_t num_actions ) { MatchState view; view.viewingPlayer = position; view.state.actingPlayer[0][num_actions -1] = position; view.state.numActions[0] = num_actions; for (size_t i = 0; i < num_actions; ++i) { view.state.action[0][i].type = actions[i]; } view.state.holeCards[position][0] = card; view.state.round = 0; return view; }
Version data entries
14 entries across 14 versions & 1 rubygems