Coder Social home page Coder Social logo

pycarddeck's People

Contributors

cranndarach avatar dependabot-support avatar djetelina avatar n-holmes avatar pmccauley1994 avatar scul86 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

pycarddeck's Issues

unittest to py.test

I started writing tests with classic unittest.TestCase in mind, they should be rewritten into py.test format (just functions and asserts if I understand py.test correctly) :D

While at it, test coverage should be increased back to 100% ;)

Documentation paging

Right now, Documentation is all on a single page. As the library expands, it'll be useful to have a structure for paging. Also each example from examples subfolder should be in documentation in it's raw form, so that people don't have to go to source and can just look at them while reading up on how to use the library

Functional tests

Is there a functional test possible for this libary that wouldn't just duplicate already existing unittests?

Create examples

There should be examples of usage.

These examples don't have to containt the game logic, but only the parts where pyCardDeck is relevant

By writing those, we'll:

  • show how a to have a nice card object that will utilize the library
  • highlight what is missing in the library
  • check if the library is pleasurable to work with (very important)

Examples to write:

  • Poker
  • Exploding Kittens
  • Blackjack
  • MtG or Hearthstone (drafting or deck management)
  • Old maid
  • Mau Mau
  • Quartets or Go Fish
  • War

standard_deck.yml not included with pip release

When using the pyCardDeck.deck.Deck.load_standard_deck() function, the following error occurred:

Traceback (most recent call last):
  File "examples/blackjack.py", line 175, in <module>
    Player("Simon")])
  File "examples/blackjack.py", line 26, in __init__
    self.deck.load_standard_deck()
  File "/home/$USER/anaconda3/lib/python3.5/site-packages/pyCardDeck/deck.py", line 378, in load_standard_deck
    data = yaml.load(open(location)).__dict__
FileNotFoundError: [Errno 2] No such file or directory: '/home/$USER/anaconda3/lib/python3.5/site-packages/pyCardDeck/standard_deck.yml'

I checked and confirmed that it was not there, and pasted the file from this repository into the pip-installed directory, and it ran correctly.

Tox tests

1up tests, because tests are good.

JSON Import and Export

It's good to have the ability to export a deck into a JSON format(file) and later import from the very same file, so that decks can be easily shared and replicated.

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.