]> Skullheadx's Git Forge - Sorting.git/commitdiff
clean up files + add sorting method files
authorSkullheadx <704277@pdsb.net>
Tue, 24 Jan 2023 22:11:28 +0000 (17:11 -0500)
committerSkullheadx <704277@pdsb.net>
Tue, 24 Jan 2023 22:11:28 +0000 (17:11 -0500)
display.py
main.py
sorting_algorithms/bubble_sort.py [new file with mode: 0644]
sorting_algorithms/insertion_sort.py [new file with mode: 0644]
sorting_algorithms/quick_sort.py [new file with mode: 0644]
sorting_algorithms/selection_sort.py [new file with mode: 0644]

index 17038d3cf6a528715114ee28e449a2602015d211..57b9e6c1332a360f96ae7efe843c6a0a2de1106c 100644 (file)
@@ -35,4 +35,4 @@ class Display:
         delta = self.clock.tick(self.FPS)
 
     def draw(self, surf):
-        self.screen.fill(GRAY)
+        surf.fill(GRAY)
diff --git a/main.py b/main.py
index d90402b2788df0aa6695e09b90ed4c926add60b3..cd3b9c235e5f7340f6be949b1638e81f9f24ac22 100644 (file)
--- a/main.py
+++ b/main.py
@@ -1,5 +1,6 @@
 from display import Display
 
+
 def main():
     window = Display()
     window.show()
diff --git a/sorting_algorithms/bubble_sort.py b/sorting_algorithms/bubble_sort.py
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/sorting_algorithms/insertion_sort.py b/sorting_algorithms/insertion_sort.py
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/sorting_algorithms/quick_sort.py b/sorting_algorithms/quick_sort.py
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/sorting_algorithms/selection_sort.py b/sorting_algorithms/selection_sort.py
new file mode 100644 (file)
index 0000000..e69de29