RahulRj09 / Snake-And-Ladder-Game

0 stars 0 forks source link

Why we create a `Dice` outside of the `Board` #13

Open samyakbhuta opened 5 years ago

samyakbhuta commented 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?