Coder Social home page Coder Social logo

pyker's Introduction

  • ๐Ÿ‘‹ Hi, Iโ€™m @nicolafan
  • ๐Ÿ‘€ Iโ€™m interested in Machine Learning applications with Python, web development and algorithms.
  • ๐Ÿ’ž๏ธ Iโ€™m looking to collaborate on coding projects on GitHub, I think this will be a method for deeply understanding what I'm studying.
  • ๐Ÿ“ซ How to reach me: forums or my email address (or send me a DM on Twitter).
  • ๐Ÿ“š Currently I'm a Computer Science student in Italy.

pyker's People

Contributors

nicolafan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

topstar116

pyker's Issues

Manage multiple pots

The idea is that we need multiple pots for managing all-in situations.
In these cases, the player which is not able to call the amount to get to the next round, can go all-in and participate only in a part of the pot in case of win.

For each pot it will also be needed to write the players who can win that pot and, at the end of the play, to check the winning cards on the different pots to find the winners.

I think the difficult part here is to determine the amounts to put in the pots.

Implementation could be a list of integer or maybe it could be useful to have a Pot object.

Remove `Players` class

I'm not so sure, but I think the Players class is quite redundant. Now that players are stored in the State, we could just store a list of players inside the state (not sure about where to implement functions such as next_to) but I think the code would be cleaner without always repeating the active to access the players.

Make packages

The app contains too many files in the pyker root, so a better modularization would be required.

Generate new requirements

The current requirements were generated on a previous Python installation, so I will have to regenerate them with a fresh Python 3.10 installation.

Setup AI bots

Add an AI module that can communicate with the game to perform the actions of the bots. Actions can be taken randomly, just to setup the modules.

Refactoring game logic: create states

Currently, it's quite difficult to think about implementing an AI, because of the current implementation of the class Play.

I will follow the vision of a game proposed by the book Artificial Intelligence: A Modern Approach. In particular, the implementation of a State is of primary importance. The refactoring process will probably touch also the module models.py and the gui package.

  • Refactor game.py.
  • Refactor models.py.
  • Refactor package gui.

Fold bug

If the last player of a play folds, at the start of the following play (when the blinds have bet) the first player will automatically fold. There is a problem with consuming the click of the folding button at the end of a play. This is a bug which is not so important, since the other players will be commanded by AI, so the buttons won't be repeated for each player at anytime. Btw it's still annoying.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.