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
CallMeOrange
@EgnaroDev
@thegreatkoe Is this first time making a project? have you experienced html/css before starting fCC?
Tom
@moT01
@thegreatkoe some sort of goofy feeling behavior using the vh, but it seems to work good enough
Ravi Kishore Thella
@ravikishorethella
@thegreatkoe looks good :clap: good work
Lukas
@thegreatkoe

@MCTwoDigitZero this is my first time making a project!
@moT01 yeah I know, but it was the only way i got the single-page layout to work for me :/ . Would you say working with percentage is the better way?

@ravikishorethella thank you (:

CamperBot
@camperbot
thegreatkoe sends brownie points to @mctwodigitzero and @mot01 and @ravikishorethella :sparkles: :thumbsup: :sparkles:
:warning: thegreatkoe already gave mctwodigitzero points
:cookie: 726 | @mot01 |http://www.freecodecamp.com/mot01
:cookie: 669 | @ravikishorethella |http://www.freecodecamp.com/ravikishorethella
Ravi Kishore Thella
@ravikishorethella
@thegreatkoe :+1:
Thomas Lawless
@tlawless94
Would anyone know why this code generates an infinite number of arrays? newBoard is a tic tac toe board state represented by an array like [0,0,0,0,1,0,2,0,0] with 1's representing a human player's move and 2 a cpu's. Why are my return statements not stopping the recursive calls (this is what I assume is happening)?
function AIMove (newBoard) {

  if (checkWinState(newBoard, 1)){
    console.log("winstate1");
    return -10 + depth;
  } else if (checkWinState(newBoard, 2)){
    console.log("winstate2");
    return 10 - depth;
  } else if (checkStalemate(newBoard)){
    console.log("winstate3");
    return 0;
  }

  depth++;
  var openSpaces = getOpenSpaces(newBoard);
  //not working
  if (playerTurnStatus){
    for (var i = 0; i < openSpaces.length; i++){
      var newBoardCopy = newBoard.slice();
      newBoardCopy[openSpaces[i]] = 1;
      possibleNextStates.push(newBoardCopy);
    }
  } else {
    for (var i = 0; i < openSpaces.length; i++){
    var newBoardCopy = newBoard.slice();
    newBoardCopy[openSpaces[i]] = 2;
    possibleNextStates.push(newBoardCopy);
    }
  }
  playerturnStatus = playerTurnStatus? false: true;
  console.log(possibleNextStates);
  possibleNextStates.forEach(function(state){
    AIMove(state)
  });

}
CallMeOrange
@EgnaroDev
@thegreatkoe if thats true then you are off to good start
Gulsvi
@gulsvi
@tlawless94 Just a guess, but could it be the lower case 't' in playerturnStatus = playerTurnStatus? false: true;
Seems playerTurnStatus isn't getting set to false
CallMeOrange
@EgnaroDev
@SkyC0der I stayed awaken for two days
1.5 days maybe
Lukas
@thegreatkoe
@MCTwoDigitZero but i have to admit i had to google quite a lot ^^
CallMeOrange
@EgnaroDev
I see
Gulsvi
@gulsvi
lol @MCTwoDigitZero why? :)
Thomas Lawless
@tlawless94
thanks @SkyC0der
CamperBot
@camperbot
tlawless94 sends brownie points to @skyc0der :sparkles: :thumbsup: :sparkles:
:star2: 1749 | @skyc0der |http://www.freecodecamp.com/skyc0der
CallMeOrange
@EgnaroDev
@SkyC0der I didnt want to sleep lol during watching anime I realized it was already morning
Then went to work on tribute page and I was like "Okay I finished all preparations for tomorrow"
Gulsvi
@gulsvi
Nice :)
CallMeOrange
@EgnaroDev
What? tomorrow?
Gulsvi
@gulsvi
When you hear the birds and you haven't gone to sleep yet....
CallMeOrange
@EgnaroDev
L
1/2 of halfway there
Lukas
@thegreatkoe
@MCTwoDigitZero looks really nice!
Gulsvi
@gulsvi
Very good :)
CallMeOrange
@EgnaroDev
@thegreatkoe thanks
CamperBot
@camperbot
mctwodigitzero sends brownie points to @thegreatkoe :sparkles: :thumbsup: :sparkles:
:cookie: 120 | @thegreatkoe |http://www.freecodecamp.com/thegreatkoe
CallMeOrange
@EgnaroDev
@SkyC0der thanks
CamperBot
@camperbot
mctwodigitzero sends brownie points to @skyc0der :sparkles: :thumbsup: :sparkles:
:star2: 1750 | @skyc0der |http://www.freecodecamp.com/skyc0der
CallMeOrange
@EgnaroDev
I think I will be done today then move on to portfolio
@SkyC0der Do you know how to set up website?
Gulsvi
@gulsvi
I did it once, with DNS settings, apache, etc...
Lukas
@thegreatkoe
i think i will skip the portfolio for now and do it when i have already done a few more projects (:
Gulsvi
@gulsvi
Or do you mean just on github?
CallMeOrange
@EgnaroDev
Like set up your own website
About you, protfolio, etc..
on github? what are you talking about? :/
cumibulat
@cumibulat
@khaduch thanks a bunch.. will get look into it :D
CamperBot
@camperbot
cumibulat sends brownie points to @khaduch :sparkles: :thumbsup: :sparkles:
:star2: 3006 | @khaduch |http://www.freecodecamp.com/khaduch
Gulsvi
@gulsvi
"website" is a place where people go to look at web pages, hosted on a server
CallMeOrange
@EgnaroDev
Yeah that...
Gulsvi
@gulsvi
Do you mean the portfolio project?