Dice Roll Number Detector

Hi! I’m creating a project. It’s a board game, where I need to roll some dice, and add up the numbers rolled to move something across the board. I’ve already gotten the dice to roll randomly, but I’m not sure how I could use CoBlocks to count the numbers, and I’m not sure if that’s even possible. Any ideas? I’ll try to add the link to the CoSpace.

This is my second account. Here’s the link to my CoSpace: CoSpaces Edu: Make AR & VR in the classroom

Please help!!!

The random number doesn’t even have to be what’s rolled on the dice; that’s a bonus.
I just can’t get my code to work.

EDIT: I GOT IT TO WORK! I just want to make it so that the number is equal to the amount rolled on the dice, but again, that’s a bonus.


Great that it worked for you!

Please share your space and send us a share link, so that we can take a look :slight_smile:.
Here’s how to get the share link :

An example of random dice rolls, getting the face up values, using the values to do some math and move a game piece. It’s not elegant but it is documented and gets the job done. Lol.