how can you save the variables that the robot generates during the match so you can look at it later?
Although I guess you could say that you were requesting a Wiki article, this question is more suited for the Programming forum.
You will also want to look up Kevin Watson’s EEPROM code, as it provides the functionality you are looking for.