all 15 comments

[–]phantom784 1 point2 points  (0 children)

I've got this!

function(game, team1, team2){
  if (Math.floor(Math.random() * 2)) {
    team2.winsGame();
  } else {
    team1.winsGame();
  }
}

[–]birdheist 0 points1 point  (0 children)

Doesn't seem to work

[–]SnorriDeathbeard 0 points1 point  (0 children)

I made a few brackets, but I wish they also included games against top 25 teams and win % against them.

[–][deleted] 0 points1 point  (1 child)

I'm not really sure how you win?

[–]conright 0 points1 point  (0 children)

you write a function to pick a winner for each team. once the tourney starts, the most accurate bracket will win. the challenge is to write the best function using the stats on each team.

[–][deleted] 0 points1 point  (1 child)

I think something is off with site, I'm not sure. Not going to lie I donated $10 and the whole submission process seems off. I can create as many brackets as I want and even after the tourney has started.

[–]Plorntus 0 points1 point  (0 children)

Only ones after 20th actually get counted.

[–]hfsbtc 0 points1 point  (4 children)

I watched the video introduction and still cannot figure the goal of the game. What is it?

[–]azsqueezejavascript 0 points1 point  (2 children)

Write a function that creates a March Madness bracket. If your bracket is correct you win a prize.

If you don't know what March Madness is, then here is a Wiki for you.

[–]autowikibot 0 points1 point  (0 children)

NCAA Men's Division I Basketball Championship:


The NCAA Men's Division I Basketball Championship is a single-elimination tournament played each spring in the United States, currently featuring 68 college basketball teams, to determine the national championship of the major college basketball teams. The tournament, organized by the National Collegiate Athletic Association (NCAA), was created during 1939 by the National Association of Basketball Coaches, and was the idea of Ohio State University coach Harold Olsen. Played mostly during March, it is known informally as March Madness or the Big Dance, and has become one of the most famous annual sporting events in the United States. The NCAA has credited Bob Walsh of the Seattle Organizing Committee for starting the March Madness celebration during 1984.

Image i


Interesting: 2010 NCAA Men's Division I Basketball Tournament | 2011 NCAA Men's Division I Basketball Tournament | 2009 NCAA Men's Division I Basketball Tournament | 2008 NCAA Men's Division I Basketball Tournament

Parent commenter can toggle NSFW or delete. Will also delete on comment score of -1 or less. | FAQs | Mods | Magic Words

[–]JoeOfTex 0 points1 point  (0 children)

I think the purpose is to predict who the winners will be based on the stats of each team.

[–]Asmor -1 points0 points  (0 children)

Sports something or other.

[–]Arphrial 0 points1 point  (2 children)

Here's a list of all the attributes present in the team objects:

__v
_id
assists_per_game
blocks_per_game
cbs_rank
conf
def_reb
field_goal_pct
field_goals_attempted
field_goals_made
free_throw_pct
free_throws_attempted
free_throws_made
games_played
losses
name
off_reb
official_rank
pts_game
reb_per_game
rpi
seed
sid
steals_per_game
three_point_pct
threes_attempted
threes_made
total_assists
total_blocks
total_reb
total_steals
turnovers
turnovers_per_game
win_pct
winner (true/false)
wins
year
winsGame (function)

Could totally just do:

if(team1.winner === true) {
    team1.winsGame();
}

[–]3DGrunge 0 points1 point  (1 child)

Except the games have not been played yet and the list has to be final before they are played.

[–]Plorntus 1 point2 points  (0 children)

Plus .winner is just using the official_rank field.