Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Aug 17 09:32
    User @bjorno43 unbanned @linkin-park
  • Jun 20 21:19
    @bjorno43 banned @shenerd140
  • Apr 25 17:13
    @mstellaluna banned @cmal
  • Jan 08 22:05
    @mstellaluna banned @dertiuss323
  • Nov 07 2018 04:42
    User @texas2010 unbanned @ows-ali
  • Nov 02 2018 16:25
    @texas2010 banned @ows-ali
  • Oct 12 2018 05:50
    @bjorno43 banned @NACH74
  • Oct 05 2018 23:02
    @mstellaluna banned @JomoPipi
  • Sep 16 2018 12:21
    @bjorno43 banned @yash-kedia
  • Sep 16 2018 12:16
    @bjorno43 banned @vnikifirov
  • Sep 05 2018 08:12
    User @bjorno43 unbanned @androuino
  • Sep 05 2018 07:38
    @bjorno43 banned @androuino
  • Aug 23 2018 16:57
    User @bjorno43 unbanned @rahuldkjain
  • Aug 23 2018 16:23
    @bjorno43 banned @rahuldkjain
  • Jul 29 2018 14:13
    User @bjorno43 unbanned @jkyereh
  • Jul 29 2018 01:00
    @bjorno43 banned @jkyereh
  • Jul 10 2018 22:09
    @bjorno43 banned @manafn
  • Jul 06 2018 15:20
    @texas2010 banned @imlegend19
  • Jul 03 2018 12:28
    @bjorno43 banned @vbvmatta
  • Jun 29 2018 13:54
    @bjorno43 banned @OGTechnoBoy
karocann
@karocann
@makstheimba I hear it too.
Maksim Kulichenko
@makstheimba
somebody is suddenly started talking
Emily Sperry
@sperrye
I don't hear anything, I didn't even know that was a feature
Maksim Kulichenko
@makstheimba
I did not know you can broadcast your voice to a whole room
Emily Sperry
@sperrye
OH, I bet youre hearing the video!
Because I paused it.
scroll up, there might be a video of a twitch project playing
Amit
@amit-s
hah! I think it's the twitch stream above
Maksim Kulichenko
@makstheimba
@sperrye oops, yeah. That's the case. But I did not click on a video
Amit
@amit-s
@karocann I think your success functions need a }
jahnellybean
@jahnellybean
hahah the video got me too
anyone wanna help me :)
?
Amit
@amit-s
@jahnellybean i can try...what's up?
jahnellybean
@jahnellybean
yay thank you!
http://codepen.io/jahnellybean/pen/rrbxPA the "My Work" preview section is off-centered. i want to center it with there are 2 images in a row but they seem to shift left. however, if i remove the margin in my css for each image (work1-4) then its centered. but i want the space between each image
Amit
@amit-s
@jahnellybean ok...the quickest fix (but not necessarily the best) would be to add margin-left to work1 and work3. you can add this after your existing margins
jahnellybean
@jahnellybean
ah yes that makes sense and could work for now
ty @amit-s!
CamperBot
@camperbot
jahnellybean sends brownie points to @amit-s :sparkles: :thumbsup: :sparkles:
:cookie: 340 | @amit-s |http://www.freecodecamp.com/amit-s
Amit
@amit-s
look into css flexbox. I prefer it when it comes to stuff like this
Daniel
@DanielMW34
Hello. I am running into some trouble with my tic-tac-toe game, in particular the functions checkPlayerVictory and checkComputerVictory... I have copied the code for checkPlayerVictory below and posted a link to the pen as well. For some reason, these functions are not doing what they are "supposed" to do and the application as a whole is very buggy. Hoping to start with the code below. Please, if you can help, help me figure out what the heck is going wrong with this ...
 function checkPlayerVictory() {
    $("#test6").html("checkPlayerVictory Initiated"); 
    for (i=0; i < winCombos.length; i++) {
        var ticTacToe = [];
        var tic = winCombos[i][0];
        var tac = winCombos[i][1];
        var toe = winCombos[i][2];
        if (playerOne.indeOf(tic) !== -1) {
          ticTacToe.push("tic");
        }
        if (playerOne.indeOf(tac) !== -1) {
          ticTacToe.push("tac");
        }
        if (playerOne.indeOf(toe) !== -1) {
          ticTacToe.push("toe");
        }
        if (ticTacToe.length == 3) {
          playerOneScore += 1;
          winner = "Player1";
          $("#test7").html(playerOneScore);
          $("#1").html("Y");
          $("#2").html("O");
          $("#3").html("U");
          $("#4").html("-");
          $("#5").html("-");
          $("#6").html("-");
          $("#7").html("W");
          $("#8").html("I");
          $("#9").html("N");
          break;
        }
      }
    if (winner == "Player1") {
        setTimeout (startGame, 3000);
      }
    if (winner !== "Player1") {
      cpuTurn();
    }
  }
Risa Fletcher
@risafletcher
@DanielMW34 in your ifs: fix indeOf to indexOf
Daniel
@DanielMW34
@risafletcher OMFG..... thank you... I have been losing my mind over this
CamperBot
@camperbot
:cookie: 4 | @risafletcher |http://www.freecodecamp.com/risafletcher
danielmw34 sends brownie points to @risafletcher :sparkles: :thumbsup: :sparkles:
Daniel
@DanielMW34
@risafletcher do you have a line number or is it repeated over and over ?
Ken Haduch
@khaduch
@DanielMW34 ".indexOf" - misspelling
Many lines in the code you posted
Risa Fletcher
@risafletcher
@DanielMW34 the first 3 ifs in your for loop in the checkPlayerVictory function
Daniel
@DanielMW34
@risafletcher @khaduch thank you ... I have probably copied/pasted this mistake into checkComputerVictory as well.... I can't imagine how long I would have gone on rewriting and restructuring the code if it had not been for you catching that
CamperBot
@camperbot
danielmw34 sends brownie points to @risafletcher and @khaduch :sparkles: :thumbsup: :sparkles:
:warning: danielmw34 already gave risafletcher points
:star2: 1842 | @khaduch |http://www.freecodecamp.com/khaduch
Risa Fletcher
@risafletcher
@DanielMW34 I hope it helps! If there are more errors I'm happy to help! :)
Daniel
@DanielMW34
@risafletcher there are!!!!
Ken Haduch
@khaduch
@DanielMW34 - the browser developer console would help you with non-existent functions like this. Open it up when you are using the site
Risa Fletcher
@risafletcher
@DanielMW34 Let's run through your bugs. If you give us a list, I'm sure we're all happy to help identify and tackle them
Daniel
@DanielMW34
@risafletcher I corrected the indexOf and that apparently has made a difference however, the program is not executing as I would like it. First thing I noticed.. this section is not effecting the display...
if (ticTacToe.length == 3) {
          playerOneScore += 1;
          winner = "Player1";
          $("#test7").html(playerOneScore);
          $("#1").html("Y");
          $("#2").html("O");
          $("#3").html("U");
          $("#4").html("-");
          $("#5").html("-");
          $("#6").html("-");
          $("#7").html("W");
          $("#8").html("I");
          $("#9").html("N");
          break;
        }
Risa Fletcher
@risafletcher
=== are best instead of just two
Daniel
@DanielMW34
@risafletcher bug #2, computer went first, I went second, computer then picked 3rd and 4th... apparently there is a bug which is not waiting its turn for me
@risafletcher how do you want me to send these bugs to you? A private message list?
Risa Fletcher
@risafletcher
@DanielMW34 Sure! I'm actually in class so if you need immediate help, I'm sure someone online right now can take over
Daniel
@DanielMW34
@risafletcher Let me get the list made, that alone would help me identify what all needs fixing. Will you be free after your class? If so, around what time / timezone ?
Risa Fletcher
@risafletcher
so, it sounds like you need the computer's turn/function to hand off to user input each time
I'm in PST. I'll be out in about an hour :/
Ken Haduch
@khaduch
@DanielMW34 - it looks like it is allowing about two moves, and then it clears the screen of X and O marks? Are you seeing that?
Daniel
@DanielMW34
@khaduch I have seen MANY different variations of mistakes, including that one.