text: #! /usr/bin/env python
  import random
  
  
  class Environment:
      def __init__(self):
          self.total_timesteps = 10
          self.timesteps_occured = 0
  
      def get_current_state(self):
          return [0.0, 0.0, 0.0]
  
      def get_actions(self):
          return [0, 1]
      
      def check_completion(self):
          return self.timesteps_occured == self.total_timesteps
  
      def perform_action(self, action: int):
          if self.check_completion():
              raise Exception("Game is over")
          self.timesteps_occured += 1
          return random.randint(0,100)
  
  
  
  