загружаю переделку на конец 14 урока
This commit is contained in:
parent
d31c25200c
commit
0db2c1e5af
|
@ -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)
|
|
@ -1,3 +0,0 @@
|
|||
# Default ignored files
|
||||
/shelf/
|
||||
/workspace.xml
|
|
@ -1,6 +0,0 @@
|
|||
<component name="InspectionProjectProfileManager">
|
||||
<settings>
|
||||
<option name="USE_PROJECT_PROFILE" value="false" />
|
||||
<version value="1.0" />
|
||||
</settings>
|
||||
</component>
|
|
@ -1,4 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.11" project-jdk-type="Python SDK" />
|
||||
</project>
|
|
@ -1,8 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/попытка восстановить все.iml" filepath="$PROJECT_DIR$/.idea/попытка восстановить все.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
|
@ -1,8 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="PYTHON_MODULE" version="4">
|
||||
<component name="NewModuleRootManager">
|
||||
<content url="file://$MODULE_DIR$" />
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
</module>
|
Loading…
Reference in New Issue