diff --git a/HNS/Excercises/.idea/.gitignore b/HNS/Excercises/.idea/.gitignore
new file mode 100644
index 0000000..26d3352
--- /dev/null
+++ b/HNS/Excercises/.idea/.gitignore
@@ -0,0 +1,3 @@
+# Default ignored files
+/shelf/
+/workspace.xml
diff --git a/HNS/Excercises/.idea/Excercises.iml b/HNS/Excercises/.idea/Excercises.iml
new file mode 100644
index 0000000..f571432
--- /dev/null
+++ b/HNS/Excercises/.idea/Excercises.iml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/HNS/Excercises/.idea/inspectionProfiles/profiles_settings.xml b/HNS/Excercises/.idea/inspectionProfiles/profiles_settings.xml
new file mode 100644
index 0000000..105ce2d
--- /dev/null
+++ b/HNS/Excercises/.idea/inspectionProfiles/profiles_settings.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/HNS/Excercises/.idea/misc.xml b/HNS/Excercises/.idea/misc.xml
new file mode 100644
index 0000000..db8786c
--- /dev/null
+++ b/HNS/Excercises/.idea/misc.xml
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/HNS/Excercises/.idea/modules.xml b/HNS/Excercises/.idea/modules.xml
new file mode 100644
index 0000000..01b7871
--- /dev/null
+++ b/HNS/Excercises/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/HNS/Excercises/.idea/vcs.xml b/HNS/Excercises/.idea/vcs.xml
new file mode 100644
index 0000000..b2bdec2
--- /dev/null
+++ b/HNS/Excercises/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/HNS/Excercises/ShipCraft/main.py b/HNS/Excercises/ShipCraft/main.py
index f264cb6..44cd4b1 100644
--- a/HNS/Excercises/ShipCraft/main.py
+++ b/HNS/Excercises/ShipCraft/main.py
@@ -98,11 +98,14 @@ def colorize(field, buttons):
def keypress_handler(e):
global ship_size
- global field_mode
if 1 <= int(e.keysym) <= 4:
ship_size = int(e.keysym)
return ship_size
- elif e.keysym == 'm':
+
+
+def keypress_handler_2(f):
+ global field_mode
+ if f.keysym == 'm':
if field_mode == 0:
field_mode = 1
else:
@@ -185,6 +188,7 @@ window = Tk()
window.title("Ship Craft!")
window.geometry('450x410')
window.bind_all('', keypress_handler)
+window.bind_all('', keypress_handler_2)
set_ship(1, 1, 4, 1)
set_ship(0, 6, 3, 0)
set_ship(7, 3, 1, 0)