Closed Skillz4Killz closed 6 years ago
Hey guys - I'm not really sure this is a good idea. Array position shouldn't really indicate anything special, rather, a property of the object should indicate what it is.
NOTE: We support rosters.length > 2 anyways, so it would be hard to assign special meaning to position.
In the
/matches
endpoint the data that is received is mostly split up into 2 rosters in the following format:There are 2 teams in VG. Blue/Red.
matchRoster
should be consistent with a side. On occasion0
can represent blue and sometimes red teams.Can this be adjusted so that these are always consistent with a team side for example:
matchRoster[0]
can represent Blue team always.Expected Behaviour
matchRoster[0]
should consistently represent the same team.Current Behaviour
matchRoster[0]
andmatchRoster[1]
are inconsistent with the team they represent.Possible Solution
matchRoster[0]
should always represent Blue teammatchRoster[1]
should always represent Red teamSteps to Reproduce (for bugs)
Context
This printing true for [0] and false for [1] but player appears to be on Red Team and has won this match