issues
search
Dvorkam
/
RPG-Engine
1
stars
0
forks
source link
Implement the Dice submodule for Dices module
#10
Open
Dvorkam
opened
10 months ago
Dvorkam
commented
10 months ago
Basic implementation of the Dice submodule
[ ] Dice Constructor defines number of sides
[ ] Dice is not copyable only movable
[ ] std::mt19937_64 is used as a pseudorandom generator
[ ] PRNG can be inited by a random number or a custom number
[ ] sides() return the number of sides
[ ] roll() and ()operator rolls the dice and returns number between (0,side number>
[ ]
operator defines how many times a dice is rolled and returns sum (2
D)
[ ] +operator adds this value to the roll value
[ ] supports
and + operator combined (2
D+3) = roll()+roll()+3
[ ] ThreadSafeDice class will inherit from Dice
[ ] ThreadSafeDice the seed shall be protected
Basic implementation of the Dice submodule