Skip to main content

A simple game of Blocks and Bullets

Project description

Blocks and Bullets is a simple game, which at the moment has little gameplay value. It is more an experiment on the components of a game.


Later versions have been released, and can be obtained on

This version, 0.1, is the only one obtainable as both a python package and as uncompiled code. All later versions are as a zipped pyc file.


Please ensure you are running Python 2.7 or better. Ensure you have extracted the files from the .tar.gz file.

Run the standard command:

python install

To do this, open terminal, cmd, or your nearest equivalent. Navigate to the location of the extracted files. Run the command above.

If you are running on Windows, and the above does not work, try: install

If you are running Ubuntu and the above does not work, add sudo to the start and see how it goes.

Game Setup

Running the game should be done by running python command line and typing in:

import BlocksandBullets

To start, simply enter the amount of players, from 2 to 15. Then, give each character their name of 1-25 characters that cannot be the same between characters, and a symbol, the 1 character that is their playing piece, and cannot be a hash, arrow including v or space.

It is recommended you resize the window to be slightly taller than default.


Type in each command then press enter.

WASD to move, E to reload, and SPACE to shoot. 8426 to move, 0 to reload, and 0 to shoot. Alternatively type each command, eg “Up”, “Reload”, “Shoot”.


Each player is allocated 10 hp and 10 bullets, as well as a spot on the edge of the 50x30 board, and enough room to move.

The board consists of blocks (#), players, and bullets (< v > ^).

Players take turns, either moving a spot, shooting a bullet, or reloading.

Players that shoot with no ammo will miss their turn, as will players walking into blocks, players, or the edge of the board.

Bullets move once per players’ go, and so move faster relative to players the more players there are. For example, with two players, a bullet moves twice as fast as players, whereas with 15 players, bullets move 15 times as fast as players.

A bullet hitting a player will knock of 1 hp and be destroyed, bullets hitting a wall will destroy both the bullet and the wall, bullets colliding will be destroyed, and bullets two bullets hitting a wall at the same time will both be destroyed, as well as the wall.

A player with 0 hp will dissapear.

When 1 player remains they will be declared winner, but if none remain, the game will be declared a draw.

Known Bugs

Report bugs to olligobber, at

Project details

Release history Release notifications | RSS feed

This version


Download files

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

Source Distribution

Blocks and Bullets-0.1.tar.gz (3.6 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page