From 51c3a234e66d537470051fd1d382ba882cd9ad56 Mon Sep 17 00:00:00 2001 From: Skullheadx <704277@pdsb.net> Date: Tue, 24 Jan 2023 17:11:28 -0500 Subject: [PATCH] clean up files + add sorting method files --- display.py | 2 +- main.py | 1 + sorting_algorithms/bubble_sort.py | 0 sorting_algorithms/insertion_sort.py | 0 sorting_algorithms/quick_sort.py | 0 sorting_algorithms/selection_sort.py | 0 6 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 sorting_algorithms/bubble_sort.py create mode 100644 sorting_algorithms/insertion_sort.py create mode 100644 sorting_algorithms/quick_sort.py create mode 100644 sorting_algorithms/selection_sort.py diff --git a/display.py b/display.py index 17038d3..57b9e6c 100644 --- a/display.py +++ b/display.py @@ -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 d90402b..cd3b9c2 100644 --- 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 index 0000000..e69de29 diff --git a/sorting_algorithms/insertion_sort.py b/sorting_algorithms/insertion_sort.py new file mode 100644 index 0000000..e69de29 diff --git a/sorting_algorithms/quick_sort.py b/sorting_algorithms/quick_sort.py new file mode 100644 index 0000000..e69de29 diff --git a/sorting_algorithms/selection_sort.py b/sorting_algorithms/selection_sort.py new file mode 100644 index 0000000..e69de29 -- 2.54.0