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
Radek
@radekjohn
Hi, look at my tic-tac-toe!
h1tag
@h1tag

@alpox

you need to use http.get(). However, this time you will be provided with
three URLs as the first three command-line arguments.

You must collect the complete content provided to you by each of the URLs
and print it to the console (stdout). You don't need to print out the
length, just the data as a String; one line per URL. The catch is that you
must print them out in the same order as the URLs are provided to you as
command-line arguments.

Adrian Padurean
@Securiteru
@SkyC0der You gave me some feedback, regarding first point: I have no idea what Bootstrap 3/4 is, I just used those functions :-?
alpox
@alpox
@h1tag Possible solutions:
  1. Load each content one after another (Start the next only if the last finished)
  2. Load them parallel and set the result to an exact position in an array (In the order you need them) and keep a counter which you increment each time the request of one came back. Then, you always test if the counter is 3 already. In that case, you got them all and the results are in the right order in the array.
  3. Put all calls into promises and use Promise.all to wait for them all to finish. The result will be in order.
h1tag
@h1tag
@alpox there are also hints with the exercise (but I need more hints :smile:) . Do you want me to pm you the hints (because they're somewhat long)? Or post them in the backend room ? (maybe this will give you more context)
alpox
@alpox
@h1tag private message would be best i guess :D
@radekjohn Maybe i'm missing out if its needed but i see no AI :D
h1tag
@h1tag
@alpox Thank you. I pm'ed you
CamperBot
@camperbot
h1tag sends brownie points to @alpox :sparkles: :thumbsup: :sparkles:
:star2: 1120 | @alpox |http://www.freecodecamp.com/alpox
h1tag
@h1tag
@Securiteru are you using the same classes you learned in freecodecamp?
if yes, then you have to add Bootstrap 3 not 4
Radek
@radekjohn
@alpox well, i did not used minimax. I just made strategy for every move. there are just nine of them
Pendramon
@Pendramon
I never actually get to use bootstrap for my web pages x)
alpox
@alpox
@radekjohn Hmm i just thought it needs at least a dumb one. I might be wrong
Radek
@radekjohn
@alpox Do you think that AI was part of the assignment?
alpox
@alpox
But i mean that the AI doesn't do anything and i have to set everything myself :D
@radekjohn 3. userstory: User Story: I can play a game of Tic Tac Toe with the computer. sounded for me like that
Not against myself :D
Jacky
@skywards1910
read many thing but have not work in any real project. What should i do now?:worried:
Radek
@radekjohn
@alpox to be honest, i tryed to implement minimax, but I failed
alpox
@alpox
@skywards1910 Only read or also practiced?
Radek
@radekjohn
@alpox did you choose the number of players one?
alpox
@alpox
@radekjohn I think it doesn't have to be minimax - i guess a random placement of stones would do it too for this challenge
Jacky
@skywards1910
@alpox practiced also
alpox
@alpox
@radekjohn No i didn't
And i wondered why i can play without doing that :D
@radekjohn The gameboard should not be available before one chose all options - because i can now play, choose an option, and play on
Radek
@radekjohn
@alpox zero players = computer against computer, one player = human gainst computer, two players = human against human
@alpox yes, I see. that can be fixed
alpox
@alpox
@radekjohn Seems to work else :D
Radek
@radekjohn
@alpox the code is very messy, because I had to do something else for about 2 months
@alpox It is the main reason why I was not able to implement minimax
Pendramon
@Pendramon
That Clever AI is unbeatable xd
alpox
@alpox
@radekjohn Your AI code is endless :D looks like minimax would be easier than that xD
@Pendramon I just beat it :-/
Radek
@radekjohn
@Pendramon it is not it is not minimax
@alpox it is long but easy to understand
alpox
@alpox
@radekjohn Not to me :D
Pendramon
@Pendramon
Holy code thats alot xd
alpox
@alpox
@Pendramon It seems to be easy to beat - just did it again :D
@Pendramon Have fun trying to beat mine :D
Pendramon
@Pendramon
Dude if it goes first no way to beat it in clever mode
Radek
@radekjohn
@alpox first it tryes to occupy central square. than it tryes to make row of its own two squares. than it is looking for row of two to win. if there is no such row, it is looking for such row owned by enemy to prevent him from winning. thats all
minimax is unbeatable by definition
alpox
@alpox
@radekjohn yea minimax is pretty badass
No way to beat
I used it in my tictactoe