Advertisement
Guest User

Untitled

a guest
Apr 2nd, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.51 KB | None | 0 0
  1. class Micro5_1Solver(BaseLearner):
  2.     def __init__(self):
  3.         self.current_map = {i:i for i in string.digits}
  4.         self.question_mode = True
  5.  
  6.     def reward(self, r):
  7.         print("qm:", self.question_mode, ", rew:", r)
  8.  
  9.     def next(self, input):
  10.         if self.question_mode:
  11.             self.question = input
  12.             self.question_mode = False
  13.             return self.current_map[input]
  14.  
  15.         self.current_map[self.question] = input
  16.         self.question_mode = True
  17.         return " "
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement