assignRoles() public method

Assigns each user in the game to a role.
public assignRoles ( )
Example #1
0
 protected function setUp()
 {
     parent::setUp();
     $gameId = "G0H6N0ABH";
     $players = array('Bob', 'Alice', 'Fred', 'George', 'Tim', 'Joe', 'Jim', 'Sally', 'Mary');
     //    $bob = new $this->getMockBuilder("\Slack\User");
     //    $this->getMockWithoutInvokingTheOriginalConstructor('\Slack\User');
     //    $optionsManager = new OptionsManager();
     //
     //    echo $optionsManager->getOptionValue("changevote") . "\n";
     //
     //    echo $optionsManager->getOptionValue("role_seer") . "\n";
     $this->strat = new Classic();
     $theGame = new Game($gameId, $players, $this->strat);
     $theGame->assignRoles();
 }