From fff448772c8db951ab2a9715fc99056c57342535 Mon Sep 17 00:00:00 2001 From: Chris Mekelburg Date: Thu, 5 Sep 2024 18:48:03 -0400 Subject: [PATCH] I learned quite a bit about the terminal doing this lab, especially becuase I had to try it a few times before getting under the 60 second timer. When I was having trouble getting mwc update to work, I ended up opening the code using code return_to_ship.py to see what the problem might have been. I did some googling with what the path fucntion does and started to think that maybe my log file was not being created. I added print(Path(LOG_FILE).absolute()) to the code and then redid the adventure and then looked at the hidden files in Finder and saw that the log file was created. I removed that code line and re-saved return_to_ship.py. I'm still not sure if the saving of the file or not having a log file was the issue before, but I think everything should be all set now. I think the terminal might be useful if you want to create a number of files or add a program/funciton that may create files for you. This would be easier than doing everything manually with the Finder. --- .DS_Store | Bin 0 -> 6148 bytes adventure/.DS_Store | Bin 0 -> 6148 bytes adventure/seafloor/.DS_Store | Bin 0 -> 6148 bytes adventure/seafloor/sunken_ship/.DS_Store | Bin 0 -> 6148 bytes return_to_ship.py | 1 + 5 files changed, 1 insertion(+) create mode 100644 .DS_Store create mode 100644 adventure/.DS_Store create mode 100644 adventure/seafloor/.DS_Store create mode 100644 adventure/seafloor/sunken_ship/.DS_Store diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..e21534cf85dce95e0ca2732efc1fcc9b5f05e481 GIT binary patch literal 6148 zcmeHKu}%U(5Sl$_C@o$Jg(@lXFS(V;%9FsC0){K35m36 zj6_aQnn!d>N0W3=v9ru>Dvg6|FFTFfr^gq=e#Ulo3g3IW;eTLb%29*_I(EoL<%X#b zsj=9hU5%b!*X3YLtzX9?ZFNJ?hmpgWQ{fW;DHH|$>>2P3cm}2naD50c7(;`Jpe`Ml zbmIi(q1J+XT{eLMD}bTFL=YN?lBGads>~;blI73`#xFFO2+DF&(y~dJot61QQKo3C zK)aI)1^w(9@C>*NL1-ZUkASAZPo9B4W#AL&Ucb2j literal 0 HcmV?d00001 diff --git a/adventure/.DS_Store b/adventure/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..da24eee04975c28f0015ca50efcb4154fec2b689 GIT binary patch literal 6148 zcmeHKJ5Izf5S@WVibS&|rH{ZC^kJ2pU@rjK@F~3ViWR+&M#UkJC@HuFZ#)CqXk8!* zgwRZ6KYMv{itS@#>i<+r`xU-Jp6 zT$}-Cz!`7`oPnP*AlDnDIaT!D8E^)ifiDK+d^Gp8!nc962jSwFeo) YuQkkyl120-9Oyp+g%IzYfnQ+Y117UL(EtDd literal 0 HcmV?d00001 diff --git a/adventure/seafloor/.DS_Store b/adventure/seafloor/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..ebc4f98d0b50a861a6824047565451cad8c74172 GIT binary patch literal 6148 zcmeHKy-ve05I&avwNQ-J4Zxjde}^eMnn`r8GGkwP6&^)wxky<1EBG9Ym7&ex9s(L_I%Ur zyZN?nk=559^WPX!Ne9}~175&AUd56!x~HO^N{34`8N2A7te(#M>gi=H>2%DybDs%) z?cGdi$tkHQ1ImCh@DmL1(GH1*g4!wr%78L(WPr~H3uTN0R)YTMK;ugQU>{~L=yNT> zF*aZvuoA=w#7HPmLQN=SvEp!QGVZTc77=n(!is8#w@fFky Y?3O#gIAA3R3q(HzJPq0?1Ha0^2RoW-1ONa4 literal 0 HcmV?d00001 diff --git a/adventure/seafloor/sunken_ship/.DS_Store b/adventure/seafloor/sunken_ship/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..1bcd59d1970c9d15f8761edce2002853376d3a28 GIT binary patch literal 6148 zcmeHKy-ve05I(mRO2yIq&=pH-43 zz=iv^l; zH!{F;cR)+JB8R6nf0)p2gIlKag|Aog730_a_SzRk>3j)$^7fKG-RI9|eV^)EpVdu! z9E&b!N^9C6#SId?C6A}x%jRU*tDV#K_;Gu28gd%wul66AeeK!JkAEB$Wk4BF2L2iY zyu?G2LqRQ-0cAiL*fGHCgM~6?5gWmyE{`vjC8>DZ_ zfHLr}7%-D!UgY?sxVQE`j`vy%y@ax`Un95+K_zU(@a3)e2pR--%N1Z2u@Qs?q6dLM LgBHrbk23HM1lU+# literal 0 HcmV?d00001 diff --git a/return_to_ship.py b/return_to_ship.py index dd6446e..9c03497 100644 --- a/return_to_ship.py +++ b/return_to_ship.py @@ -41,6 +41,7 @@ def win(): print_fancy(VICTORY) win_time = datetime.now().isoformat() Path(LOG_FILE).write_text(f"finished the lab at {win_time}\n") + def chest_was_opened(): return Path(CHEST_TIMER_FILE).exists()