Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
  • 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
vultureroast sends brownie points to @francozt01 :sparkles: :thumbsup: :sparkles:
:star: 561 | @francozt01 | http://www.freecodecamp.com/francozt01
Franco Zapata
@vultureroast np good luck :+1:
Gordon Davidescu
I finally found it @eyohansa but thank you
gordondavidescu sends brownie points to @eyohansa :sparkles: :thumbsup: :sparkles:
:star: 283 | @eyohansa | http://www.freecodecamp.com/eyohansa
Gordon Davidescu
my game is basically complete
I can make the computer a lot smarter
UGH. if you win, then the computer doesn't take a turn the next go around. I feel like I'm missing initializing something but I"m not sure what
Eric Yohansa
You might want to set filledSquares back to 0 on clearBoard()
Chris Davis
this might be a cool addition, if the player wins, create an if/else asking the player if they would like to play again. If yes - newGame() , if no - have a nice day!
Gordon Davidescu
I set filledSquares to 0 in the new game function
that's a good idea @chrisdav6
huh, @eyohansa that seemed to fix it
thanks again @eyohansa
gordondavidescu sends brownie points to @eyohansa :sparkles: :thumbsup: :sparkles:
:warning: gordondavidescu already gave eyohansa points
Eric Yohansa
Chris Davis
maybe something like this...

if (playerWon === true)
alert("Good on you, you won, mate!");

var playAgain = prompt("Would you like to play again? Yes or No?", "").toLowerCase();

if(playAgain === "yes") {
} else {
alert("Have a nice day!");
/*Code to exit function*/
Gordon Davidescu
I like that
uhm for some reason, and this ONLY happens for the third square in the middle row, but sometimes clicking on it does nothing
like if you take a couple of turns and it isn't filled, you cannot click it
and that's the only square for which that is the case
For the Twitch API, why is my array only printing the last array item inside the $.getJSON function?
 for (i = 0; i < streamers.length; i++) {
    var currentStreamer = streamers[i];
    console.log(currentStreamer); //prints list of all streamers

    $.getJSON(endpointURL + streamers[i], function(json) {
      var isStreaming = json.stream;
      console.log(currentStreamer); //prints list of only last streamer in array

      if (isStreaming) {
        var streamer = json.stream.channel.name,
          streamTitle = json.stream.channel.status,
          streamImage = json.image,
          game = json.stream.game;
          //do stuff
Aidan VanLeuven
@gordondavidescu it gets kinda glitchy if you let the computer win
Gordon Davidescu
yes, you noticed that too
Luong Van Vinh
test code
test code
test code
how to add code into tag? everybody help me
Gordon Davidescu
also, damnit, the win detection is not always working
use ```
wait, what? code into tag?
right, so then enter then and control enter once the code is in between
``` makes whatever is in between it look like ^
Luong Van Vinh
@gordondavidescu thank you very much
lvhero sends brownie points to @gordondavidescu :sparkles: :thumbsup: :sparkles:
:star: 380 | @gordondavidescu | http://www.freecodecamp.com/gordondavidescu
Luong Van Vinh
@gordondavidescu i am sorry i write English not good.
Gordon Davidescu
ok, can someone help me figure out why the computer win detection is not working for everything
you're welcome @lvhero
Gordon Davidescu
still can't figure out why when a couple of moves have been made, suddenly square six is unclickable
Noah Wilkie
when i use the thumbnail component on my image i get really wide white bars on the sides of the image
Jeremy Roe
Would anyone have a moment to QA my weather zipline? http://codepen.io/jeremyroe/full/qbzVRO/
Maulik Darji
@jeremyroe nice :+1:
@jeremyroe the temperature is about 14 degrees faherenheit low to me. but, that's just open weather map's inaccuracy. so i think it's fine. the only thing i might change is to make it more obvious how to switch between f and c