예제 #1
0
 def print_out(self):
     """
     update the coordinates
     """
     for i in range(0, 3):
         for j in range(i-3, 3-i):
             common.set_arr(self.x_pos+j, self.y_pos-i, "B")
예제 #2
0
 def print_out(self):
     """
     update the coordinates
     """
     for j in range(0, 2):
         for i in range(-1, 2):
             common.set_arr(self.x_pos+i, self.y_pos+j, "$")
예제 #3
0
def floor(floor_y):
    """
    Coordinates of floor
    """
    for i in range(1, common.COLS + 1):
        if common.value_arr(i, floor_y) == " ":
            common.set_arr(i, floor_y, "0")
            common.set_arr(i, floor_y + 1, "0")
예제 #4
0
 def print_out(self):
     """
     update the coordinates
     """
     for j in range(-4, 1):
         for i in {-1, +1}:
             common.set_arr(self.x_pos+i, self.y_pos+j, "|")
         common.set_arr(self.x_pos, self.y_pos+j, "-")
예제 #5
0
 def print_out(self):
     """
     update the coordinates
     """
     for i in range(-1, 3):
         for j in range(-1, 2):
             if i == 0:
                 common.set_arr(self.x_pos + i, self.y_pos + j, "@")
             else:
                 common.set_arr(self.x_pos + i, self.y_pos, "@")
예제 #6
0
 def print_out(self):
     """
     update the coordinates
     """
     common.set_arr(self.x_pos, self.y_pos, "I")
     common.set_arr(self.x_pos, self.y_pos - 1, "O")
     common.set_arr(self.x_pos, self.y_pos - 2, "^")
예제 #7
0
 def print_out(self):
     """
     update the coordinates
     """
     common.set_arr(self.x_pos, self.y_pos, ">")
     common.set_arr(self.x_pos + 1, self.y_pos, "<")
예제 #8
0
 def print_out(self):
     """
     update the coordinates
     """
     for i in range(-2, 3):
         common.set_arr(self.x_pos+i, self.y_pos, "0")