Skip to content

Instantly share code, notes, and snippets.

@weslleyaraujo
Last active December 21, 2016 22:36
Show Gist options
  • Save weslleyaraujo/9553fda39c0982ee665435e63e93dd78 to your computer and use it in GitHub Desktop.
Save weslleyaraujo/9553fda39c0982ee665435e63e93dd78 to your computer and use it in GitHub Desktop.
const { guessed, all } = getState().match;
console.log(all, guessed) // ['red'] ['red']
if (guessed[0] === all[0]) {
// keep going from here, guesses are correct
return;
}
// player didnt guessed properly, do something about it
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment