View Single Post
  #19   Spotlight this post!  
Unread 30-03-2008, 16:38
SteveJanesch SteveJanesch is offline
hopes he has enough oomph
FRC #1533 (Triple Strange)
Team Role: Mentor
 
Join Date: Apr 2007
Rookie Year: 2006
Location: Greensboro, NC
Posts: 103
SteveJanesch is a splendid one to beholdSteveJanesch is a splendid one to beholdSteveJanesch is a splendid one to beholdSteveJanesch is a splendid one to beholdSteveJanesch is a splendid one to beholdSteveJanesch is a splendid one to beholdSteveJanesch is a splendid one to behold
Re: Suggestion to improve the alliance choosing program

Quote:
Originally Posted by Bongle View Post
Here's the summing code. I grouped things by hundreds so patterns would show up and it'd be easier to implement. m is a match object, which includes the team numbers of the red and blue alliances. m.red and m.blue are 3-element integer arrays of the alliance. If I have a big glaring bug, please point it out.
Bongle,

I'm not sure, but I think your code includes the numbers of all three teams on each alliance. If you're calculating the average team number of only of the teams you're paired with, wouldn't you want to keep your own team number out of the average? If that's the case, it'll flatten out the "who you are paired with" average with respect to your own team number. It won't change your opponent's average team number, though. I could easily be reading the code wrong. I thought what was important was the average team number of who you were paired with, which should ideally be constant versus team number, not the whole alliance, which your own team number will influence.

- Steve
Reply With Quote