diff --git a/HNS/Excercises/ShipCraft/Переосмысление/ShipField (1).py b/HNS/Excercises/ShipCraft/Переделка/ShipField.py similarity index 100% rename from HNS/Excercises/ShipCraft/Переосмысление/ShipField (1).py rename to HNS/Excercises/ShipCraft/Переделка/ShipField.py diff --git a/HNS/Excercises/ShipCraft/Переосмысление/main (1).py b/HNS/Excercises/ShipCraft/Переделка/main.py similarity index 96% rename from HNS/Excercises/ShipCraft/Переосмысление/main (1).py rename to HNS/Excercises/ShipCraft/Переделка/main.py index e2b7c1f..7140fb5 100644 --- a/HNS/Excercises/ShipCraft/Переосмысление/main (1).py +++ b/HNS/Excercises/ShipCraft/Переделка/main.py @@ -146,16 +146,16 @@ def left_button_click(field, buttons, row, col): if active_field == 0: field_mode = field_mode_left - ship_ + ship_size = ship_size_left + ship_direction = ship_direction_left else: field_mode = field_mode_right + ship_size = ship_size_right + ship_direction = ship_direction_right if field_mode == 0: - if check_possible(field, row, col): - if active_field == 0: - set_ship(field, row, col, ship_size_left, ship_direction_left) - else: - set_ship(field, row, col, ship_size_right, ship_direction_right) + if check_possible(field, row, col, ship_size, ship_direction): + set_ship(field, row, col, ship_size, ship_direction) elif field_mode == 1: shoot(field, row, col) colorize(field, buttons) diff --git a/HNS/Excercises/ShipCraft/Переосмысление/.idea/.gitignore b/HNS/Excercises/ShipCraft/Переосмысление/.idea/.gitignore deleted file mode 100644 index 26d3352..0000000 --- a/HNS/Excercises/ShipCraft/Переосмысление/.idea/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -# Default ignored files -/shelf/ -/workspace.xml diff --git a/HNS/Excercises/ShipCraft/Переосмысление/.idea/inspectionProfiles/profiles_settings.xml b/HNS/Excercises/ShipCraft/Переосмысление/.idea/inspectionProfiles/profiles_settings.xml deleted file mode 100644 index 105ce2d..0000000 --- a/HNS/Excercises/ShipCraft/Переосмысление/.idea/inspectionProfiles/profiles_settings.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - \ No newline at end of file diff --git a/HNS/Excercises/ShipCraft/Переосмысление/.idea/misc.xml b/HNS/Excercises/ShipCraft/Переосмысление/.idea/misc.xml deleted file mode 100644 index a971a2c..0000000 --- a/HNS/Excercises/ShipCraft/Переосмысление/.idea/misc.xml +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/HNS/Excercises/ShipCraft/Переосмысление/.idea/modules.xml b/HNS/Excercises/ShipCraft/Переосмысление/.idea/modules.xml deleted file mode 100644 index 01e711a..0000000 --- a/HNS/Excercises/ShipCraft/Переосмысление/.idea/modules.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/HNS/Excercises/ShipCraft/Переосмысление/.idea/попытка восстановить все.iml b/HNS/Excercises/ShipCraft/Переосмысление/.idea/попытка восстановить все.iml deleted file mode 100644 index d0876a7..0000000 --- a/HNS/Excercises/ShipCraft/Переосмысление/.idea/попытка восстановить все.iml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file