djetelina / pycarddeck Goto Github PK
View Code? Open in Web Editor NEWDeck of cards with all the logic, so you don't have to!
License: MIT License
Deck of cards with all the logic, so you don't have to!
License: MIT License
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% ;)
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
Similar code found in 2 other locations (mass = 44)
https://codeclimate.com/github/iScrE4m/pyCardDeck/pyCardDeck/deck.py#issue_57f8baa746b0df0001000032
Is there a functional test possible for this libary that wouldn't just duplicate already existing unittests?
Dependabot couldn't authenticate with https://pypi.python.org/simple/.
You can provide authentication details in your Dependabot dashboard by clicking into the account menu (in the top right) and selecting 'Config variables'.
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:
Examples to write:
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.
1up tests, because tests are good.
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.
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.