Christopher
2feb1a9c65
implemented setting shields
2023-03-02 11:37:58 +13:00
Christopher
ca89609c3e
energy is now removed with travel
2023-03-02 11:26:43 +13:00
Christopher
7aec8284c0
can now specify positional params on the nav command
2023-03-02 10:24:13 +13:00
Christopher
4cda6be184
added warning messages when entering a sector
2023-03-02 10:02:56 +13:00
Christopher
dee8a96f3c
working on tasks
2023-03-01 20:42:51 +13:00
Christopher
41ca9c3c70
added enterprise to intro, entering quadrant names, and fixed bug in name indexing
2023-03-01 20:36:01 +13:00
Christopher
a18112767d
added intro section with quadrant name
2023-03-01 19:51:50 +13:00
Christopher
efba942396
renamed text_display to view, and moved srs into it
2023-03-01 19:07:46 +13:00
Christopher
ec3b0697bb
moved blobs of text into text_display mod
2023-03-01 19:05:38 +13:00
Christopher
1732d95032
added proper help
2023-03-01 15:41:00 +13:00
Christopher
b56819aadf
implemented taking damage and dying
2023-03-01 15:36:42 +13:00
Christopher
4b326547e4
added a tasks tracking doc
2023-03-01 11:53:19 +13:00
Christopher
60f0492c28
displaying stats properly aligned next to scan
2023-03-01 11:43:58 +13:00
Christopher
c23449fac3
just reorged some code
2023-03-01 09:44:14 +13:00
Christopher
bc4470999c
bug fix - used sector instead of quadrant as index in srs
2023-03-01 09:42:44 +13:00
Christopher
09cb10eeb7
added some unit tests for movement
2023-03-01 09:39:08 +13:00
Christopher
ab26776d61
moved nav function bulk to commands module
2023-03-01 09:16:00 +13:00
Christopher
80ac05e005
semi working nav (going weird directions)
2023-03-01 08:54:39 +13:00
Christopher
615438a267
more work on nav, almost done basics!
2023-03-01 08:29:47 +13:00
Christopher
183ec6fde3
added a note on how to calculate
2023-02-28 20:19:54 +13:00
Christopher
7c8c420d44
work on nav command under new model
2023-02-28 20:15:46 +13:00
Christopher
8903e77d83
reduced down to command and response (collapsed MVU)
2023-02-28 19:45:54 +13:00
Christopher
31b9834a7c
work on nav command
...
this involves architectural shifts
2023-02-28 13:53:38 +13:00
Christopher
c35736c5c8
enterprise now starts in a random quadrant and empty sector
2023-02-28 13:28:08 +13:00
Christopher
92b4d60e84
work aligning with mvu, along with a render quadrant view function
2023-02-28 12:36:29 +13:00
Christopher
c4b8da053b
started work on a rust implementation of super star trek
2023-02-28 11:37:54 +13:00
Marc Wilson
007b38751d
add try/except to computer prompt, invalid input should not crash game
2022-09-03 09:38:19 -07:00
Aldrin Misquitta
ed2e2be6ac
Fix typo in 84_Super_Star_Trek/README.md ( #780 )
...
Fixes #779
2022-07-24 07:35:09 +02:00
Alexander Wunschik
e97820ae11
do not interprete mjs files from 84 as node-scripts
2022-04-02 11:38:08 +02:00
Martin Thoma
3a63978d0e
Super Star Trek (Python): Introduce OOP
...
* Avoid encoding values in int; use tuples instead (the memory overhead
is OK today)
* Avoid encoding values in str, use lists instead (same story)
* Use variable names that speak for themselves
* Fix typo (NAVAGATION)
2022-04-01 17:04:14 +02:00
Martin Thoma
9972ee4073
Super Star Trek (Python): Refactoring
...
* Add 'Ship' class to group code / avoid some global variables /
avoid passing so many parameters around
* Use docstrings
2022-03-31 22:41:16 +02:00
Martin Thoma
d511a22b5e
Annotate superstartrek
2022-03-31 10:41:30 +02:00
Martin Thoma
17a75813b1
Remove tests and alternative Python implementations
...
Ad discussed here:
https://github.com/coding-horror/basic-computer-games/issues/548#issuecomment-1081008471
2022-03-29 07:02:10 +02:00
Jeff Atwood
05c998658d
Merge pull request #679 from taciano-perez/update_superstartrek_java
...
updated implementation with proper OO design, provided link to video
2022-03-24 13:02:24 -05:00
Taciano Dreckmann Perez
a64aa983fe
updated implementation with proper OO design, provided link to video
2022-03-24 18:58:47 +01:00
Jeff Atwood
859636240e
Merge pull request #673 from drewjcooper/rework-with-common-lib
...
Rework with common lib
2022-03-22 15:57:46 -05:00
Andrew Cooper
42c21bbc62
Use common library in SuperStarTrek
2022-03-22 17:55:44 +11:00
Martin Thoma
1b1d50986b
Python: Add type annotations to all 'print' functions ( #662 )
...
* Add test to superstartrek and fixes several issues in superstartrek - I probably introduced them 🙈
* Mastermind type annotations
2022-03-21 10:41:14 +01:00
Martin Thoma
83b3dc402c
Python: Add type annotations
2022-03-20 19:16:39 +01:00
Jeff Atwood
f40a1fc465
add Porting Notes to readme.md for each game
2022-03-18 19:50:22 -07:00
Martin Thoma
3b2739b8a2
Clean Code: Apply flake8-simplify to Python
...
Also flake8-comprehensions which was added to the CI
For flake8-simplify, there are a few false-positives,
e.g. https://github.com/MartinThoma/flake8-simplify/issues/115
2022-03-18 22:29:56 +01:00
Martin Thoma
f52d9a0e54
Clean Code: Python
...
Fix issues found by flake8-bugbear:
* Unused loop variables
* assert statements in non-test code
* mixing test code with production code
* mark one excessive test which takes ~10min to run
as 'slow'
2022-03-18 14:59:08 +01:00
Jeff Atwood
43f2ec013a
add 00_Alternate_Langage folder and move alternate ports there
2022-03-15 20:49:07 -07:00
Martin Thoma
5374569063
Python: Fix string concatenation
2022-03-15 13:57:28 +01:00
Martin Thoma
0ba0307767
Python: Fix linting issues
...
The following Flake8 issues were fixed:
* W291
* W504
* F821
* F401
* F541
* E402
* E711
2022-03-14 13:13:20 +01:00
Martin Thoma
2e957b1b27
Fix mypy issues in superstartrek
2022-03-13 08:46:55 +01:00
Martin Thoma
af88007734
Python: Fix Flake8 E722 and E741
...
Additionally:
* Use functions to group blocks of code
* Use variable names (not just one character...)
2022-03-12 08:17:03 +01:00
Martin Thoma
e64fb6795c
MAINT: Apply pre-commit
...
Remove byte-order-marker pre-commit check as there would be
many adjustments necessary
2022-03-05 09:29:23 +01:00
Taciano Dreckmann Perez
06c8d2be69
added 84_Super_Star_Trek Java port
2022-02-21 21:42:22 +01:00
Jeff Atwood
6ee2d5ee37
Merge pull request #512 from zspitz/main
...
Create missing sln/csproj/vbproj files
2022-01-16 11:13:47 -08:00