Giter Site home page Giter Site logo

cards-rs's People

Contributors

vsupalov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

cards-rs's Issues

Add Deck::remove(Card)

One ought to be able to remove a card from a shuffled or unshuffled deck.

Use-case

You implement a game with a discard pile (Vec<Card>). Once the Deck is depleted you want to keep the top card from the discard and "shuffle" the rest of the cards back into the deck.

The naive solution to do this now is to keep track of that card and if you draw it, ignore that card and draw another one.

Implementing a remove(Card) method to Deck would make this use-case much easier.

Thoughts? I'd gladly implement this. I just wanted to make sure it wasn't explicitly out of scope for cards-rs.

extern crate cards - multiple rmeta candidates for 'cards' found

note: candidate #1: \?\D:\Peter\Rust\cards-rs\target\rls\debug\deps\libcards-7f5f0298aa149407.rmeta
note: candidate #2: \?\D:\Peter\Rust\cards-rs\target\rls\debug\deps\libcards-8a4d9799675d56b5.rmeta rustc(E0465)

I tried deleting candidate #2 in \cards-rs\target\rls\debug\deps but I still get the same error message of "multiple rmeta candidates for 'cards' found.

Any suggestions are appreciated.

@RustEngineer

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.