Introduction MRB's Documentation Walkthrough The General Idea MasterControl The Modules The World Design Suggestions Modified MRB Source |
Code Walkthrough: The General IdeaWhen the software loads, players are created and connect to the server. The brain of each player is the class MasterControl. A member function of MasterControl, named play has a loop that checks to see if it's the players turn and then calls the member function act. Within act, the player's model of the world is updated and each module evaluates the world and returns a grade recommending a course of action. Based on these graded actions, MasterControl chooses a move to make. The loop discontinues at the game's end.
Next: MasterControl |