dmorrill10 / acpc_poker_gui_client

Rails application that allows humans to play poker matches managed by the Annual Computer Poker Competition's Dealer program in a web GUI.
55 stars 38 forks source link

Show actions in full English in a displayed log #10

Closed dmorrill10 closed 9 years ago

dmorrill10 commented 12 years ago

The log terminal should be placed either at the bottom of the screen, to the left of the actions, as most poker programs, or on the right side of the table where actions are currently being displayed. I feel like it would be better on the right side of the table since we aren't dealing with multiple players that need that space on the table, but others may disagree.

Here are examples of what I think the log should show. These can and should be translated into tests:

When player A calls a bet of 100, the log would say: A calls (100)

When player A bets by 500 to 700: A bets by 500 to 700

When player B raises by 500 to 700 after player A bet by 100 to 200: B calls (100) and raises by 500 to 700

When player A checks: A checks

When player A folds: A folds

When the xth hand is dealt by player A, and A is small blind, while player B is big blind: Hand #x dealt by A, A pays SB, B pays BB

When player A wins 1000 to increase their balance to 2000: A wins 1000, bringing their balance to 2000

Ideally, after the best hand for each player has been recognized, and after a showdown, the above message should be changed to: A wins 1000 with <hand name> over <opponent hand name>, bringing their balance to 2000

When the match ends with A having a balance of 2000 and B with -2000: Match over, A's balance is 2000 and B's balance is -2000

dmorrill10 commented 11 years ago

The pros in Vegas were fine with the simple action string, so this can be backlogged for now.

dmorrill10 commented 9 years ago

Implemented in v1.0.