Originally posted by ahale
I could be assuming that, but since I really don't know how the code is written it's probably running a query against two team ID's where the out come is based off builds, playbooks, etc. But since I can only assume things, what the hale do I know.
I've never seen the code, but I have a strong suspicion it goes much deeper than that. There is obviously some sort of back-end database (I'd guess MySQL) that is used for storage of data related to agents, teams, players, plays, playbooks, etc. but the guts of the game is in another language. GLB Classic was coded using perl. I'm not sure if they progressed to a modern language (java, .NET, etc.) but most of the business logic (individual plays) is likely done as a loop in the application layer.