I've been playing with the idea of creating a simulator for next year, where you would input code and an onscreen diagram would show you the values of sensors, location on the field, etc. How would I be able to simulate what code would do in a real world environment? I can understand making a scripting simulator (DRIVE_10_FEET kinda thing), but I can't comprehend how to take arrays/structs/variables in a piece of code and relate it to how a robot would react.
Thanks for the help guys, if/when I finish this I'm going to definetly post it here =)
EDIT: Anybody have an idea on what language I should use? I'm thinking of C# so I can have an excuse to learn it (

), but maybe VisualBasic for ease of use...