DEV Community

mayank-p
mayank-p

Posted on

Poker

So after playing poker during all of quarantine, I have decided to create my own poker table using Python.

from poker import *
import eval7
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from IPython.core.display import display, HTML
import random`)

These are all of the imports I have used.

deck = list(Card)
random.shuffle(deck)

This creates the deck and shuffles it.

players = input("How many people are playing: ")

This creates the number of players playing.

flop = [deck.pop() for __ in range(3)]
turn = deck.pop()
river = deck.pop()

This sets the table for the flop.

My next steps are to create hands for each of the players to evaluate and to create stack sizes for buy ins.

Top comments (4)

Collapse
 
becry1944 profile image
Catherine R. Longoria

This sounds exciting! I'm a huge poker fan too and admire your decision to create your own poker table using Python. This is a great way to combine your passions and programming skills.

By the way, if you are looking for the best gaming sites for poker and other gambling games, I recommend paying attention to the best pokies app resource. Here you can find reviews, ratings and testimonials about various platforms to choose the best place for you to play.

Have fun creating your poker table! I will be glad to hear about the progress of the project and share my experience of playing poker.