|
| 1 | +================ |
| 2 | + StarTrek 1971 - 2020 |
| 3 | +================ |
| 4 | + |
| 5 | +The original free-and-open Star Trek console game was THE most played game of the day .... back in the 1970's! |
| 6 | + |
| 7 | +Originally written in B.A.S.I.C, from C/C++, FORTRAN, C#, Python 2 ... and now Python 3, many have been inspired to re-create, improve, and / or simply experiment with the concept. |
| 8 | + |
| 9 | +So far: |
| 10 | + |
| 11 | +* Converted from Python 2, to Python 3. |
| 12 | + |
| 13 | +* Changed in-system coordinates to simple 'chess like' (b,4 (etc)) references. |
| 14 | + |
| 15 | +* Added random event Quips – should make the game a tad more ‘NPC’? |
| 16 | + |
| 17 | +* Added that classic sublight / in system propulsion system. Warp speeds engines are now a seperate navigational system. |
| 18 | + |
| 19 | +* Heavily re-factored for growth, testing, re-use, and maintenance using modern Python. |
| 20 | + |
| 21 | +Video: https://youtu.be/TpmtCLOJ5Uw |
| 22 | + |
| 23 | +Original authors did an excellent job - made the modernization a WHOLE LOT easier! |
| 24 | + |
| 25 | +Feel free to do a 'Kirk here - Kobayashi Maru? |
| 26 | + |
| 27 | +https://www.udemy.com/course/python-1000/ |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | +Enjoy the journey, |
| 32 | + |
| 33 | + |
| 34 | +-- Randall Nagy |
| 35 | + |
| 36 | +Original: |
| 37 | + |
| 38 | + |
| 39 | +================ |
| 40 | + Star Trek 1971 |
| 41 | +================ |
| 42 | +------------ |
| 43 | + for Python |
| 44 | +------------ |
| 45 | + |
| 46 | +About |
| 47 | +===== |
| 48 | + |
| 49 | +I recently discovered the classic old BASIC game `Star Trek`_ from 1971, through a post seen on Reddit_. |
| 50 | + |
| 51 | +The post contained a version of the game rewritten in C-Sharp which I thought was quite good. |
| 52 | +I wondered if anyone had ported it to Python. |
| 53 | + |
| 54 | +After a little bit of research, I didn't find a definitive version for Python. |
| 55 | + |
| 56 | +This is by no means a definitive version itself; I just took the C# version and converted it to Python. |
| 57 | + |
| 58 | +.. _Star Trek: http://en.wikipedia.org/wiki/Star_Trek_%28text_game%29 |
| 59 | +.. _Reddit: http://www.codeproject.com/Articles/28228/Star-Trek-Text-Game |
| 60 | + |
| 61 | +Improvements |
| 62 | +============ |
| 63 | + |
| 64 | +There's heaps that can be done with this program. A lot of implementations used global variables. |
| 65 | +I tried to fix this by encapsulating them in a global object, but this can definitely be improved further. |
| 66 | + |
| 67 | +Here is a list of possible improvements: |
| 68 | + |
| 69 | +- Encapsulate everything in classes |
| 70 | +- Include help/instructions |
| 71 | +- Add extra features; |
| 72 | + + new ships, celestial objects, etc |
| 73 | + + new weapon types |
| 74 | + + crew functions |
| 75 | +- Easier navigation (using cartesian system maybe) |
| 76 | +- Make some parts more 'Pythonic' |
| 77 | +- ...Plenty more! |
| 78 | + |
| 79 | +## zSupport? |
| 80 | +If you want to support the effort, I seek no donations. Instead, simply feel free to purchase one of [my educational](https://www.udemy.com/user/randallnagy2/) or [printed](https://www.amazon.com/Randall-Nagy/e/B08ZJLH1VN?ref=sr_ntt_srch_lnk_1&qid=1660050704&sr=8-1) productions? |
0 commit comments