|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
[TBA]: Team Scoring Data Function
Here is the completed function I have been working on. It asks for 4 parameters.
This function serves two purposes. Basically it outputs an array of data ("score" and "bigmatches"). "Score" is (like said above) Averaged score over the year, or total points scored. "bigmatches" takes the number set as $highscore and looks at all matches the team has played in. If the teams alliance in each match has a score higher than $highscore the counter goes up 1. Here's the code: PHP Code:
PHP Code:
Average score is: 72 Matches Over 50 points: 22 I will be setting up a live test version on our website sometime soon. Feel free to use it in your own TBA applications. Thanks to everyone who helped me find those pesky bugs, and help solve them too |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [TBA]: TBA API ActiveX Control | Shadow503 | The Blue Alliance | 2 | 10-04-2008 08:59 |
| [TBA]: Issues with TBA API | FRANK(WGH) | The Blue Alliance | 7 | 17-03-2008 11:39 |
| [TBA] Sumbit your Robot Photos on TBA | lynca | Robot Showcase | 0 | 11-03-2008 13:25 |
| [TBA] TBA Presents... Soldering and Multimeter Tutorials | Greg Marra | General Forum | 0 | 27-01-2007 20:15 |
| Scoring function in C | mgreene | Programming | 7 | 12-01-2007 02:36 |