Skip to content

Commit

Permalink
only display important stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Huyen Nguyen authored and Huyen Nguyen committed Aug 29, 2023
1 parent 9c8af9c commit 5529026
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions test_action.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,26 +43,26 @@ def show_regions(shooting_zone, supply_drop_text_loc, launch_button_loc, battery
battery_loc[1] - battery_loc[0],
linewidth=1,edgecolor='k',facecolor='none')
plt.gca().add_patch(rect)
rect = patches.Rectangle((supply_drop_resources_amount_loc[2], supply_drop_resources_amount_loc[0]),
supply_drop_resources_amount_loc[3] - supply_drop_resources_amount_loc[2],
supply_drop_resources_amount_loc[1] - supply_drop_resources_amount_loc[0],
linewidth=1,edgecolor='y',facecolor='none')
plt.gca().add_patch(rect)
rect = patches.Rectangle((supply_drop_resources_text_loc[2], supply_drop_resources_text_loc[0]),
supply_drop_resources_text_loc[3] - supply_drop_resources_text_loc[2],
supply_drop_resources_text_loc[1] - supply_drop_resources_text_loc[0],
linewidth=1,edgecolor='y',facecolor='none')
plt.gca().add_patch(rect)
rect = patches.Rectangle((dino_collected_amount_loc[2], dino_collected_amount_loc[0]),
dino_collected_amount_loc[3] - dino_collected_amount_loc[2],
dino_collected_amount_loc[1] - dino_collected_amount_loc[0],
linewidth=1,edgecolor='c',facecolor='none')
plt.gca().add_patch(rect)
rect = patches.Rectangle((dino_collected_text_loc[2], dino_collected_text_loc[0]),
dino_collected_text_loc[3] - dino_collected_text_loc[2],
dino_collected_text_loc[1] - dino_collected_text_loc[0],
linewidth=1,edgecolor='c',facecolor='none')
plt.gca().add_patch(rect)
# rect = patches.Rectangle((supply_drop_resources_amount_loc[2], supply_drop_resources_amount_loc[0]),
# supply_drop_resources_amount_loc[3] - supply_drop_resources_amount_loc[2],
# supply_drop_resources_amount_loc[1] - supply_drop_resources_amount_loc[0],
# linewidth=1,edgecolor='y',facecolor='none')
# plt.gca().add_patch(rect)
# rect = patches.Rectangle((supply_drop_resources_text_loc[2], supply_drop_resources_text_loc[0]),
# supply_drop_resources_text_loc[3] - supply_drop_resources_text_loc[2],
# supply_drop_resources_text_loc[1] - supply_drop_resources_text_loc[0],
# linewidth=1,edgecolor='y',facecolor='none')
# plt.gca().add_patch(rect)
# rect = patches.Rectangle((dino_collected_amount_loc[2], dino_collected_amount_loc[0]),
# dino_collected_amount_loc[3] - dino_collected_amount_loc[2],
# dino_collected_amount_loc[1] - dino_collected_amount_loc[0],
# linewidth=1,edgecolor='c',facecolor='none')
# plt.gca().add_patch(rect)
# rect = patches.Rectangle((dino_collected_text_loc[2], dino_collected_text_loc[0]),
# dino_collected_text_loc[3] - dino_collected_text_loc[2],
# dino_collected_text_loc[1] - dino_collected_text_loc[0],
# linewidth=1,edgecolor='c',facecolor='none')
# plt.gca().add_patch(rect)


def show_points(moved_too_far_loc, dart_loc):
Expand Down

0 comments on commit 5529026

Please sign in to comment.