Skip to content

added a roll counter#12

Open
kobienikka wants to merge 3 commits intorileyjohngibbs:masterfrom
kobienikka:master
Open

added a roll counter#12
kobienikka wants to merge 3 commits intorileyjohngibbs:masterfrom
kobienikka:master

Conversation

@kobienikka
Copy link

Added a button that keeps track of how many dice have been rolled.

Debugging stuff right now
I had to delete my react roller and put all the files back in
added a counter that counts how many times a dice has been rolled. Also changed some of the values of the dice.

import Die from './Die';

let counter = 0

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice

dice[key].value = dice[key].roll();
this.setState({dice});
counter += 1
return counter

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you don't need this because it is defined outside

</div>
</div>
<button>
roll count: {counter}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like how you added this

Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>React App</title>
<title>Kobie's Roller</title>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure about the name


import Die from './Die';

let counter = 0

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

stellar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants