View Single Post
  #146   Spotlight this post!  
Unread 13-12-2009, 15:52
EricH's Avatar
EricH EricH is offline
New year, new team
FRC #1197 (Torbots)
Team Role: Engineer
 
Join Date: Jan 2005
Rookie Year: 2003
Location: SoCal
Posts: 19,827
EricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond repute
Re: [FF]: 2010 Season Long Fantasy FIRST

Quote:
Originally Posted by rtfgnow View Post
before you go for that update, can you make L assign teams going through the serpentine. So that L takes the place of L, L, L, L, L, L....
I honestly have no idea how to do that right now. Maybe I'll figure that out over Christmas break. I think I addressed that in the FAQs.

Here's what happens when you press L currently:
The program notes that the character is L, assigns one variable, and calls a list-picking function. That function checks for player lists, then enters a for loop where it first checks for the end of list flag, then checks if the team is taken. When it finds a team that isn't already picked, it verifies that they are attending (and triggers an alert if they aren't, which is what I was checking last night) and assigns them, then goes back into the main loop. The status is displayed, and the program waits for an input.

To do the list picking, I'd have to assign the next input to be L, which would keep it going until someone didn't have a list or ran out of teams on their list. The problem is, I'd need to do a lot of testing to make sure it didn't go into an infinite loop.
__________________
Past teams:
2003-2007: FRC0330 BeachBots
2008: FRC1135 Shmoebotics
2012: FRC4046 Schroedinger's Dragons

"Rockets are tricky..."--Elon Musk


Last edited by EricH : 13-12-2009 at 16:08.
Reply With Quote