def put(self,board,color):
     if self.spin==1 and self.x<=40:
         if self.x==40:
             self.spin=-1
         else:
             self.x+=1
     else:
         if self.spin==-1 and self.x>=1:
             if self.x==1:
                 self.spin=1
             else:
                 self.x-=1
     board.create(self.char,self.x,self.y,color)
 def put(self,board,color,donkey):
     if self.x<=78 and self.y<=58 and self.x>=1 and self.y>=1:
         if board.b[self.x][self.y+1]!=None and board.b[self.x][(self.y)+1].char=="X":
             self.check=0
             if self.spin==1:
                 self.x+=1
             else:
                 self.x-=1
         else:
             if self.check==0:
                 self.spin=self.spin*(-1)
                 self.check=1
             self.y+=1
     else:
         self.x=donkey.x+1
         self.y=donkey.y
         selfspin=1
     board.create(self.char,self.x,self.y,color)
def prnt(msg,board,y):
    i=30
    for c in msg:
        board.create(c,i,y,white)
        i+=1
 def put(self,board):
     board.create(self.char,self.x,self.y,self.color)
 def put(self,board,x,y,color):
     board.create(self.char,x,y,color)