Search:

Type: Posts; User: tabstop

Search: Search took 0.10 seconds.

  1. Replies
    6
    Views
    5,690

    Well, but you don't have to have a physical die...

    Well, but you don't have to have a physical die to emulate. If you want to roll a d6 until you don't get a 6, just roll a d5. (I would still just use a malloc'ed array, rather than a linked list.)
  2. Replies
    6
    Views
    5,690

    I can only suggest ideas; without knowing the...

    I can only suggest ideas; without knowing the different ways you're using dice, I can't say how applicable they are.

    With that caveat: many different sizes of dice is no problem with the above...
  3. Replies
    6
    Views
    5,690

    An idea, for good or ill: class Die { ...

    An idea, for good or ill:


    class Die {
    public:
    int Roll();
    Die(std::vector<int> possible_sides);
    private:
    int number_of_sides;
    std::vector<int> sides;
Results 1 to 3 of 3