yocc / python-poker-engine Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/python-poker-engine
Automatically exported from code.google.com/p/python-poker-engine
find or create card graphics for use in the graphical poker client.
if using existing card graphics, ensure that the associated license is
permissive and allows the card graphics to be redistributed in another
project (e.g. this one).
Original issue reported on code.google.com by brian%[email protected]
on 18 Jan 2008 at 4:45
create classes 'Card' and 'Hand'
Card
- rank (2,3,...,J,Q,K,A)
- suit (spades, clubs, etc.)
- string representation ("ace of clubs", "Ac")
Hand
- add card to hand
- find best hand (no worst hand finder yet for "low" games)
- compare two hands
- string representation ("full house (aces over tens)")
Original issue reported on code.google.com by brian%[email protected]
on 18 Jan 2008 at 4:30
similar to issue # 5.
Original issue reported on code.google.com by brian%[email protected]
on 18 Jan 2008 at 4:48
similar to issue # 5.
sounds likely needed include:
- deck being shuffled
- cards being dealt to a player / community
- chips being bet (i.e. being dropped & clanking together)
- win money ('cha-ching' or the like [ugh?])
- lose money (Wa-wa-waaaaa)
- crowd cheering
- alert noise for "it's your turn to act"
- folding (fast 'shweeeet')
- game over
- new hand ('tink')
- crowd shock (bad beats, all-ins, etc)
Original issue reported on code.google.com by brian%[email protected]
on 18 Jan 2008 at 5:00
create unit tests for the hand evaluation module.
test for detection of each standard poker hand:
- straight flush
- four of a kind
- full house
- flush
- straight
- three of a kind
- two pair
- one pair
- high card
test hand comparisons; e.g. straight flush beats three of a kind, etc.
include tests with same hand but differing "kickers".
Original issue reported on code.google.com by brian%[email protected]
on 18 Jan 2008 at 4:27
see issue 3 for details of features
Original issue reported on code.google.com by brian%[email protected]
on 18 Jan 2008 at 4:42
Need: 'Player', 'Table'
players have
- a name
- chips (bankroll)
tables have
- a deck of cards
- a finite number of seats that players can sit at
- a set of pots to which players bet (usually one)
the table manager fires events during the course of a game, including
- player joins game
- player leaves game
- hand starts
- hand ends
- player wins chips
- player loses chips
- player splits pot
- new pot created
- player checks
- player folds
- player bets
- it's a given player's turn to act
- player didn't respond in time (timeout => autofold)
- hole-cards dealt to player
- flop dealt
- turn card dealt
- river card dealt
- player chatted a public message to the table
- player sits out
- player asks permission to view table
- dealer button moved
- blinds go up
it is up to an event listener to prompt the players for their action when
it is their turn to act.
a player's action can be noted prior to their turn to act. when it becomes
their turn to act and the pending action is valid, it is used. otherwise,
the turn-to-act event is posted again (possibly with a flag noting the
previous pending action was invalid for the current state of the hand).
Original issue reported on code.google.com by brian%[email protected]
on 18 Jan 2008 at 4:42
we'll be using pyglet for the client implementation. however, we have a
need to have standard GUI widgets such as text boxes, buttons, check boxes,
etc.
Original issue reported on code.google.com by brian%[email protected]
on 18 Jan 2008 at 5:12
assuming we want a typical round / elliptical table layout.
determine screen locations to place player graphics at. these will include:
- a player image / avatar / icon
- last action text (e.g. "won $30,000")
- remaining chips in multiple stacks
- numerical display of chips remaining (e.g. "$1,245,000")
- highlighting for "it's your turn to act" state
- dealer button
- hole cards
- community cards
- player action events (bubbles over icons ala comics)
- game events (e.g. "blinds go up to $5 and $10"; under community cards?)
- group chat (more on this later)
- hand history
Original issue reported on code.google.com by brian%[email protected]
on 18 Jan 2008 at 5:08
similar to issue # 5.
or, we could just use system fonts (e.g. Times New Roman).
Original issue reported on code.google.com by brian%[email protected]
on 18 Jan 2008 at 4:57
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.