fix: automatic import + readme structur
This commit is contained in:
1 parent
7c175c87bd
commit
3131c52c82
7 files changed
+53
-1
No files matched your search
@@ -0,0 +1,16 @@
|
||||
root = true
|
||||
|
||||
# Unix-style newlines with a newline ending every file
|
||||
[*]
|
||||
end_of_line = lf
|
||||
insert_final_newline = true
|
||||
|
||||
[*.{md,py}]
|
||||
charset = utf-8
|
||||
|
||||
[*.py]
|
||||
indent_style = space
|
||||
indent_size = 4
|
||||
|
||||
[Makefile]
|
||||
indent_style = tab
|
||||
@@ -0,0 +1,33 @@
|
||||
# code-advent-2023
|
||||
|
||||
[Advent of Code](https://adventofcode.com/2023) problems of 2023.
|
||||
|
||||
## Progress
|
||||
|
||||
| Day | Name | Part 1 | Part 2 |
|
||||
| :-: | :------------------ | :----: | :----: |
|
||||
| 1 | | | |
|
||||
| 2 | | | |
|
||||
| 3 | | | |
|
||||
| 4 | | | |
|
||||
| 5 | | | |
|
||||
| 6 | | | |
|
||||
| 7 | | | |
|
||||
| 8 | | | |
|
||||
| 9 | | | |
|
||||
| 10 | | | |
|
||||
| 11 | | | |
|
||||
| 12 | | | |
|
||||
| 13 | | | |
|
||||
| 14 | | | |
|
||||
| 15 | | | |
|
||||
| 16 | | | |
|
||||
| 17 | | | |
|
||||
| 18 | | | |
|
||||
| 19 | | | |
|
||||
| 20 | | | |
|
||||
| 21 | | | |
|
||||
| 22 | | | |
|
||||
| 23 | | | |
|
||||
| 24 | | | |
|
||||
| 25 | | | |
|
||||
+4
-1
@@ -3,8 +3,11 @@ import sys
|
||||
if __name__ == "__main__":
|
||||
if sys.argv.__len__() != 2:
|
||||
print("[ERROR] Only the day should be specified")
|
||||
print(" $ python src/main.py 1")
|
||||
print(" $ make DAY='1'")
|
||||
sys.exit(-1)
|
||||
|
||||
module_selected = __import__(f"calendar.day_{sys.argv[1]}", fromlist=[""])
|
||||
module_path = "modules.day_" + sys.argv[1]
|
||||
module_selected = __import__(module_path, fromlist=[""])
|
||||
module_selected.run()
|
||||
|
||||
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Reference in new issue
Block a user