original_string: private function generateMovesForBots()
      {
          foreach ($this->getPlayers() as &$player) {
  
              $last_move = $player->getLastMoveIndex();
  
              // generate move for bots
              if ($player->isBot() && empty($last_move)) {
                  $move = $this->generateMove();
                  $player->move($move);
              }
          }
          
          return $this;
      }
code: private function generateMovesForBots()
      {
          foreach ($this->getPlayers() as &$player) {
  
              $last_move = $player->getLastMoveIndex();
  
              // generate move for bots
              if ($player->isBot() && empty($last_move)) {
                  $move = $this->generateMove();
                  $player->move($move);
              }
          }
          
          return $this;
      }
code_tokens: private function generateMovesForBots ( ) { foreach ( $ this -> getPlayers ( ) as & $ player ) { $ last_move = $ player -> getLastMoveIndex ( ) ; // generate move for bots if ( $ player -> isBot ( ) && empty ( $ last_move ) ) { $ move = $ this -> generateMove ( ) ; $ player -> move ( $ move ) ; } } return $ this ; }
docstring: Generate Moves For Bots
  @return $this
docstring_tokens: Generate Moves For Bots