ASDV-Cpp/Assignments/MP5_CalebFontenot/Die.h

21 lines
561 B
C++

//
// Created by caleb on 4/19/24.
//
#ifndef MP5_CALEBFONTENOT_DIE_H
#define MP5_CALEBFONTENOT_DIE_H
class Die {
private:
int sides;
int value;
public:
Die(int = 6); // Constructor
void roll(); // Rolls the die
[[nodiscard]] int getSides() const; // Returns the number of die sides
[[nodiscard]] int getValue() const; // Returns the die's value
int compareTo(Die other); // Unnessesary, but implemented to simply code
};
#endif //MP5_CALEBFONTENOT_DIE_H