Open samyakbhuta opened 5 years ago
https://github.com/RahulRj09/Snake-And-Ladder-Game/blob/96b1d83d66f53386208b85adffd17e812902e95c/src/main/java/game/GameRunner.java#L18-L19
Give some thought, as why we are creating a Dice instance out of a Board? Can't we just create a Dice when we create a Board?
Dice
Board
https://github.com/RahulRj09/Snake-And-Ladder-Game/blob/96b1d83d66f53386208b85adffd17e812902e95c/src/main/java/game/GameRunner.java#L18-L19
Give some thought, as why we are creating a
Dice
instance out of aBoard
? Can't we just create aDice
when we create aBoard
?