$employees.push({employeeName: name, isAvailable: avail})
. That's going on the assumption that you read those values into a variable name
, and avail
.
var ctx = document.getElementById('canvas').getContext('2d');
list-style-position: inside;
and then align the entire list as a block
.dates-list{
list-style-position: inside;
margin: 0 auto;
width: 100%;
text-align: center;
font-size: 18px;
font-family: Monospace, serif;
}
jfelix61 sends brownie points to @briancodes33 and @sorinr :sparkles: :thumbsup: :sparkles:
:cookie: 36 | @briancodes33 |http://www.freecodecamp.org/briancodes33
:star2: 1372 | @sorinr |http://www.freecodecamp.org/sorinr
<div class="col-md-6 col-md-offset-3">
into <div class="col-xs-12">
primuscovenant sends brownie points to @heroiczero :sparkles: :thumbsup: :sparkles:
:star2: 2091 | @heroiczero |http://www.freecodecamp.org/heroiczero
userCount
and compCount
to 0 in your newRound()
function, so that is going to be returning false in checkClicks()
teo03 sends brownie points to @tiagocorreiaalmeida and @thomlom :sparkles: :thumbsup: :sparkles:
:cookie: 463 | @tiagocorreiaalmeida |http://www.freecodecamp.org/tiagocorreiaalmeida
:cookie: 503 | @thomlom |http://www.freecodecamp.org/thomlom
user
function is not really functional because whenever you're going to click on a tile, your checkClicks
function is going to be triggered.computer
function
playerIndex
that is incremented each time he clicks on a tile while playerIndex
is inferior to the length of the sequence generated by the computer.
teo03 sends brownie points to @thomlom :sparkles: :thumbsup: :sparkles:
userIndex = 0
userSequence = []
computerSequence = []
function computerPlay() {
addANumberToComputerSequence()
displayComputerSequence()
}
recordUserClickOnTile() // Push the correct number into userSequence and triggers checkBothSequences
function checkBothSequences() {
if (userSequence[userIndex] == computerSequence[userIndex]) {
if (userSequence[userIndex].length == computerSequence[userIndex].length) {
computerPlay()
resetUserVariables()
} else {
userIndex += 1 // user is right, he can continue
}
} else {
resetUserVariables() // user is wrong
}
}
userIndex = 0
userSequence : empty
// user clicks on green
computer sequence : green, red, yellow
userSequence : green
// userSequence is good so far so increment the userIndex
// user clicks on red
computer sequence : green, red, yellow
userSequence : green, red
// userSequence is good so far so increment the userIndex
// user clicks on yellow
computer sequence : green, red, yellow
userSequence : green, red, yellow
// userSequence is good so far and its length is the same as the computerSequence, we can start the 4th round
teo03 sends brownie points to @thomlom :sparkles: :thumbsup: :sparkles:
alexxmart sends brownie points to @thomlom :sparkles: :thumbsup: :sparkles:
:cookie: 504 | @thomlom |http://www.freecodecamp.org/thomlom
*
's matter... there's tons of posts about it in the forum... and even on the `claim you front end certificate' it mentions completing the algo challenges and the projects...
lunadendron sends brownie points to @krisb1220 and @darrenfj :sparkles: :thumbsup: :sparkles:
:cookie: 294 | @krisb1220 |http://www.freecodecamp.org/krisb1220
:star2: 2298 | @darrenfj |http://www.freecodecamp.org/darrenfj
alexoros sends brownie points to @thomlom :sparkles: :thumbsup: :sparkles:
:cookie: 505 | @thomlom |http://www.freecodecamp.org/thomlom
darrenfj sends brownie points to @lunadendron :sparkles: :thumbsup: :sparkles:
:cookie: 216 | @lunadendron |http://www.freecodecamp.org/lunadendron