original_docstring: Fitness function that scores based on turns and energy.
  
      Provides a score to a creature, with 3 times the amount of turns
      plus the energy, with a bonus for surviving.
  
      Args:
          turns: number of turns a creature survived.
          energy: amount of energy left after simulation.
          isDead: boolean of death state.
      Returns:
          int: score based on function calculation
      
docstring: Fitness function that scores based on turns and energy.
  Provides a score to a creature, with 3 times the amount of turns
  plus the energy, with a bonus for surviving.
docstring_tokens: Fitness function that scores based on turns and energy . Provides a score to a creature with 3 times the amount of turns plus the energy with a bonus for surviving .
code: def fitness_fn(turns, energy, isDead):
      """Fitness function that scores based on turns and energy.
  
      Provides a score to a creature, with 3 times the amount of turns
      plus the energy, with a bonus for surviving.
  
      Args:
          turns: number of turns a creature survived.
          energy: amount of energy left after simulation.
          isDead: boolean of death state.
      Returns:
          int: score based on function calculation
      """
      if (isDead):
          return (3*turns) + energy
      else:
          return (3*turns) + energy + 120
code_tokens: def fitness_fn ( turns , energy , isDead ) : if ( isDead ) : return ( 3 * turns ) + energy else : return ( 3 * turns ) + energy + 120
short_docstring: Fitness function that scores based on turns and energy.
short_docstring_tokens: Fitness function that scores based on turns and energy .
comment: """Fitness function that scores based on turns and energy.
  
      Provides a score to a creature, with 3 times the amount of turns
      plus the energy, with a bonus for surviving.
  
      Args:
          turns: number of turns a creature survived.
          energy: amount of energy left after simulation.
          isDead: boolean of death state.
      Returns:
          int: score based on function calculation
      """