All MicroEvals
Texas Hold'em Interface
Create MicroEval

Texas Hold'em Interface

Prompt

Create a JavaScript class called HoldemGameEngine that holds and updates the game state for Texas Hold'em Poker. It should have the following API: - the constructor function should take number of players and an array of stack sizes for each player - make_move(playerIndex, moveObject) - get_hole_cards(playerIndex) - get_stack_size(playerIndex) - get_big_blind() - set_big_blind(blind_size) - get_pot_size(potIndex) - get_wager_size(playerIndex) - get_biggest_wager() - get_actions(streetIndex) - restart(playerCount, playerStacks) - set_button(playerIndex) - undo_move() - get_community_cards(streetIndex) - deal_next_hand() Important: - Multiple-pot situations are difficult to handle. Make sure the logic for that is handled correctly Use this class to create an interface to play Texas Hold'em Poker. You may add more API functions to the class if you think the interface needs them to operate.

A system prompt was added to support web rendering

Drag to resize
Drag to resize
Drag to resize

Response not available

Drag to resize

Response not available

Drag to resize