Skip to main content

A retro-style Apple ][ Basic game cooked up in 45 minutes

Project description

The nit and gritty behind Python Wars Solo 1

Usage

$ pip install python-wars-solo
$ pythonwarsolo

Introduction

Python Wars Solo is the result of a few hours effort roughly duplicating a text-based Star Trek game I wrote back in 1980-1981. You fought up to 9 Klingons in your Enterprise. Beating one was a piece of cake. Three was a fun challenge. Five was tough. Seven was done only a few times. Nine was never done. The game was simple, fast, easy to learn, and tons of fun.

Now I don’t remember much about the mechanics of the code I wrote back in High School. So when I started writing Python Wars Solo I decided not to worry about it. I would code how I felt like coding, and just create a game.

There were a few false starts. I kept trying to add tons of complexity to the code, or lots of neat features. Lots of time was wasted and not much was done. The technical term for what I was doing is ‘Scope Creep’. Then someone advised that I just make it really simple and get it done.

And I did. I got it done.

To avoid potential yet likely silly copyright/trademark issues, I renamed the ship the ‘Pythonista’. The enemies are the evil ‘Zargons’.

Flashpoint in GitHub History

In 2011, at the first and last inaugural PyCodeConf, GitHub founder Chris Wanstrath (@defunkt), introduced me by asking me in front of various Python luminaries (Raymond Hettiger, Travis Oliphant, David Beasley, Jesse Noller, the young Kenneth Reitz) details about this… er… game.

Definitely my most memorable introduction ever.

Updated for Python 3!

Thanks to @Scribilicious Python Wars Solo war is now Python 3 compatible. In fact, it no longer works for Python 2.7.

Details

  • Command the Battle Cruiser Pythonista!

  • Fight the good fight against the evil Zargons

  • Use your ship’s spinal mounted beam cannon to slice and dice the enemy to pieces!

  • Launch missiles to destroy Zargons in single shots

  • Fight up to 9 enemies!

  • Old school text based game

  • Easy to learn

  • Addictive

Future Version Thoughts

Originally I thought of expanding this out to become a game with graphics and maybe a campaign. Then I went onto other things. But here was my original list of things to add:

  • Keep basic mechanics

  • Add 2-D map

  • Incorporate PyGame

  • Since all components are objects on ship objects which exist in the space object, current version could easily be expanded:

  • Let players build their own ships and use introspection to generate menus

  • Damage the ship in ways so that parts get broken

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python-wars-solo-2.0.tar.gz (5.5 kB view details)

Uploaded Source

Built Distributions

python_wars_solo-2.0-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

python_wars_solo-2.0-py2.py3-none-any.whl (8.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file python-wars-solo-2.0.tar.gz.

File metadata

File hashes

Hashes for python-wars-solo-2.0.tar.gz
Algorithm Hash digest
SHA256 b3d6c29f0475e422f73d1737900b16cab787ec6849ea67c4ff2ba3db16a91aa4
MD5 5b6583bb5776cb85d73fbce7546a2b32
BLAKE2b-256 9aa5db273ac704ddf14bc369cbb3d9f7ff7ecc5ae7bb3d2f530ba33101796805

See more details on using hashes here.

Provenance

File details

Details for the file python_wars_solo-2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for python_wars_solo-2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7413de2db2901ef63f50c737135f77dd20fb86357a47ec62d9b73efda6c15bf1
MD5 f2433311936cbd06ae3fc3c9cd079e18
BLAKE2b-256 1b39f909afac46b270bf9ff448253088ce6f4c250106b72be954a391e9fbb66c

See more details on using hashes here.

Provenance

File details

Details for the file python_wars_solo-2.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for python_wars_solo-2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 7757ba709df1b321b54c7d5630614bd70dc322b2c91d5b52c51ffeef3b0e6464
MD5 38b2c1a6e8c6d558554b14d3f7b9a1b2
BLAKE2b-256 d76512ce62d3381fd7c212054308675ee1680f4e6f919a2c9e47031450020820

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page