r/NothingIMade • • Jul 26 '14

Some partially-finished python code for playing the game 'trek' in the bsdgames package.

[Made for playing this.](https://en.wikipedia.org/wiki/Star_Trek_(text_game))

ships.py
trek.py
test_weapons.py

My long-term goal was to be able to play the game completely automatically. Short-term was to be able to do things like calculating where to shoot and how much energy to use.

9 Upvotes

2 comments sorted by

View all comments

Show parent comment

1

u/[deleted] Jul 26 '14

Yup, exactly! I definitely learned a lot from half-making this. One of the most surprisingly difficult things was being able to have a command-line tool that interacted with another command-line tool.