118 Commits

Author SHA1 Message Date
amjad
a20b3ff31f Merge branch 'sourcery/main' of https://github.com/amjadkofahi/basic-computer-games into sourcery/main 2024-08-19 04:09:55 +03:00
amjadkofahi
c289c20c7b Update README.md 2024-08-19 04:01:58 +03:00
amjadkofahi
795d3e20eb Update README.md 2024-08-19 04:01:58 +03:00
Sourcery AI
71d02673a9 'Refactored by Sourcery' 2024-08-19 03:46:27 +03:00
Jack Boyce
9b4153dce8 Update README.md
fix typos from original book
2023-12-08 13:32:21 -08:00
amjadkofahi
2f4a752418 Merge remote-tracking branch 'upstream/main' 2023-09-20 18:31:03 +03:00
Guido Knips
7a62098e94 Un-ignore Cargo.lock
Official cargo documentation says Cargo.lock should be
under version control for binaries (but not for libraries)

see https://doc.rust-lang.org/cargo/faq.html#why-do-binaries-have-cargolock-in-version-control-but-not-libraries
2023-08-28 21:06:35 +02:00
steveglumify
0d5de95cfa Update superstartrek.py
Fixes issue #795- Ship class does not work correctly
2023-08-14 11:30:28 +12:00
amjadkofahi
02cdc6102a Update README.md 2023-05-25 01:54:55 +03:00
amjadkofahi
282f560018 Update README.md 2023-05-25 01:52:51 +03:00
Jack Boyce
192a6e7e62 remove author name from header 2023-04-02 00:02:24 -07:00
Christopher
050765e89f minor bug fix for 0 path trying to exit the perimeter 2023-03-06 09:37:45 +13:00
Christopher
371b72fc36 small cleanup 2023-03-05 16:04:42 +13:00
Christopher
790e36611f more detail in the readme 2023-03-05 16:02:59 +13:00
Christopher
e6118b4622 added a readme 2023-03-05 15:55:54 +13:00
Christopher
c59dea8e21 removed final todo 2023-03-05 15:48:53 +13:00
Christopher
9f4f045826 implemented collision detection 2023-03-05 15:30:17 +13:00
Christopher
8c1e725716 updated tasks 2023-03-05 15:05:49 +13:00
Christopher
b9947f69b5 switched from x/y system to y/x (y is horizontal, x is vertical 2023-03-05 15:05:25 +13:00
Christopher
d973dec62d implemented klongon data, final computer program 2023-03-05 14:09:28 +13:00
Christopher
50a4ddbcdc direction distance calculator 2023-03-05 14:02:39 +13:00
Christopher
e593bfd39a general status from computer 2023-03-05 11:59:16 +13:00
Christopher
2dba25c4ee fixed calculation for direction 2023-03-05 11:05:43 +13:00
Christopher
5542e2fe59 first cut of dir / dist to local objects
also bug fix for param reading, where the param wasnt bound by min max
2023-03-05 08:11:24 +13:00
Christopher
c4d4f820ac work on some computer functions 2023-03-05 07:49:25 +13:00
Christopher
15cf7b31ff implemented input instructions 2023-03-05 06:33:59 +13:00
Christopher
217e76071b added pre-game text blobs 2023-03-04 21:36:29 +13:00
Christopher
f5bcacb399 update to tasks 2023-03-04 21:35:00 +13:00
Christopher
781d0566f8 implemented torpedoes! 2023-03-04 15:24:05 +13:00
Christopher
5c25a83eaf bug fix 2023-03-04 11:37:32 +13:00
Christopher
3344649ed4 changed nav function to calculate a path 2023-03-04 11:36:42 +13:00
Christopher
7fb940f18e started work on photon torpedoes (final system)
also moved all prompt text into views submodule
2023-03-04 09:26:24 +13:00
Christopher
32c1508a51 can now resign 2023-03-04 09:10:43 +13:00
Christopher
51cfce4fb8 minor tweak to fix another underflow issue 2023-03-04 09:07:51 +13:00
Christopher
7008127806 made it so you can still repair at starbases with a broken damage control 2023-03-03 16:17:09 +13:00
Christopher
f7afb36cc7 work on victory and retry conditions 2023-03-03 16:16:01 +13:00
Christopher
a8c55988ad phasers! completed this 2023-03-03 14:49:06 +13:00
Christopher
188b17d152 small fix so klingons can't move on top of enterprise 2023-03-03 08:04:32 +13:00
Christopher
5b58b37ad1 finished implementing starbases 2023-03-03 07:59:12 +13:00
Christopher
21ccbc0f9b work on starbases 2023-03-03 07:14:25 +13:00
Christopher
5973d97a16 some more reorg 2023-03-02 21:35:45 +13:00
Christopher
873b974473 work on phaser control
everything but destruction of klingons
2023-03-02 21:34:04 +13:00
Christopher
765fa23901 implemented scan history 2023-03-02 20:29:08 +13:00
Christopher
134b17f77e implemented computer with region map 2023-03-02 19:59:57 +13:00
Christopher
2360bfd0c2 implemented getting stranded 2023-03-02 19:08:21 +13:00
Christopher
d76b048236 revised random repair or damage to only repair damaged systems 2023-03-02 19:01:48 +13:00
Christopher
460dcd7ab4 slight tweak to allow close to fixed to be fixed 2023-03-02 18:57:53 +13:00
Christopher
4644a91024 implemented long range scanners 2023-03-02 18:56:47 +13:00
Christopher
51663ea0b1 implemented random system movement changes
damage and repair, with changes to how this is implemented / reported
2023-03-02 17:13:52 +13:00
Christopher
33fc2b4c5a implemented damage command 2023-03-02 14:11:49 +13:00