The DOS game from the 80s re-written in Python from Scratch!

Overview



Drugwars

The DOS game from the 80s re-written in Python from Scratch!

Play in your browser Here

Installation

Recommended: Using pip

pip3 install drugwars

# To Update
pip3 install --upgrade drugwars

Installing from source

git clone https://github.com/M4cs/drugwars
cd drugwars
python3 setup.py install
drugwars

How to Play

Gameplay

The game is played inside of your terminal and uses letters and numbers to select things and take part actions.

You start with 2000 dollars and 5500 dollars in debt to the loan shark. The goal of the game is to pay off the loan shark and get as much money as possible while avoiding cops or getting mugged.

Cops can shoot at you and you have 20 hit points until you die and the game ends. You are able to purchase guns occasionally which will give you a chance to kill the cops.

You have 30 days to buy and sell as many drugs as possible to make a profit. Prices are randomly generated so it's all dependent on the market in the area you're at.

There are events that can happen inbetween moving areas. These can either be good for you or bad, it's all random.

You have access to a bank and stash in the Bronx which allows you to store money and drugs to keep them safe while getting mugged or caught by the cops.

Rules

  • You cannot go back to a location if you have chosen jet, you must travel somewhere else.
  • You can only go to the loan shark, bank, and stash in the Bronx.
  • You only have 30 days to make your money and pay back the loan shark.
  • Your debt increases each day with interest so pay it back ASAP
  • Your savings will increase each day with interest as well.

Controls

When asked yes or no questions: Respond with y or n

When asked to (B)uy, (S)ell, or (J)et: Respond with b to buy, s to sell, or j to jet

When asked to (R)un or (F)ight: Respond with r to run, or f to fight

When asked where to go: Respond with a number 1-6, these correspond to a location on the table

Troubleshooting

I pressed buy or sell and I didn't mean to!

Simply choose a drug and set 0 as the quantity.

I jetted but want to go back.

You can't this is a game mechanic. Be careful with your choices!

Why did I make this?

Drugwars is a game I've been playing for a long time, well before I learned how to program. Now that I'm apt in Python I thought what the hell, why not rewrite a game I love in Python and release it. Well that's what I'm doing and here it is. Enjoy :)

Changelog

v1.3 (by aconamos)

- Added "a"/"all", "h"/"half", and percent values to selling/buying drugs
- Added amount of days option
- Fixed score going into negative

v1.2.1

- Fix End Game
- Add Endgame
- Change Coat Probability

v1.2.0

- Optimized Drug Stashes
- Optimized Stash Menu
- Optimized Classes
- Optimized Helpers
- Bug Fixes
- Added Withdraw to Stash (it was missing lol)

v1.1.10

- Adds "a"/"all" and "h"/"half" features in Loan Shark and Bank

v1.1.9

- Fix infinite loop in Issue #2

v1.1.8

- Added difficulty screen

v1.1.7

- Fix loan shark balance
- Fix input bugs

v1.1.6:

- Fix borrowing

v1.1.5:

- Fix actions breaking

v1.1.4:

- Remove Auto update

v1.1.3:

- Fix logic around pricing events

v1.1.2:

- Disable Actions from occuring first round

v1.1.1:

- Adds auto update check (Set DO_NOT_UPDATE to 1 to skip)

v1.1.0:

- Adds upgrade trench coat
- Changes chances of getting away from Headass
- Fixes crashing bugs
Owner
Max Bridgland
QA Engineer @ Reggora | Multi-Language Developer | FOSS Advocate
Max Bridgland
KBYD - Simple Bulls and Cows Game

KBYD KBYD - Simple Bulls and Cows Game How to Play KBYD is a simple Bulls and Cows Game. When the game starts, the computer randomly generates 3 to 5

1 Dec 04, 2021
Tool for Path of Exile game to automatically scan Archemesis inventory and display related information

poe-archnemesis-scanner Tool for Path of Exile game to automatically scan Archemesis inventory and display related information Features Controls When

70 Nov 10, 2022
Minecraft.nix - Command line Minecraft launcher managed by nix

minecraft.nix Inspired by this thread, this flake contains derivations of both v

12 Sep 06, 2022
Simple car game written in PyGame

Welcome to CarGame 👋 Car Game written in PyGame! NOTE: This is still new and there may be stuff broken... 🏠 Homepage Install install pygame by typin

John 1 Oct 29, 2021
This is a Python solver for the game Wordle, which recently received its PT-BR version

PT_BR_Wordle_Solver Este é um solver feito em Python do jogo Wordle, que recebeu sua versão PT-BR recentemente. Onde jogar Os sites para se jogar mais

Vinicius Jameli 1 Jan 24, 2022
An easy to use game engine/framework for python.

A game engine powered by python and panda3d.

Petter Amland 1.6k Jan 05, 2023
Solution for automation games play-to-earn

Pillow automation used processing images

Luis Eduardo Camilo 1 Jan 19, 2022
Inject custom C++ code into GameMaker Studio 2 YYC builds

YYC Boost Inject custom C++ code into GameMaker Studio 2 YYC builds! WARNING: This tool is currently in an early stage of development and it is not gu

Patrik Kraif 7 Dec 30, 2022
Stock game is a python program that simulates real-life stock marketing, saving, and investments

Stock game is a python program that simulates real-life stock marketing, saving, and investments. Users get to trade and manage their portfolio and manage their 100,000 dollar portfolio.

Sai Praneth Raju K. 1 Jul 14, 2022
Gamelib is a pure-Python single-file library/framework for writing simple games.

Gamelib is a pure-Python single-file library/framework for writing simple games. It is intended for educational purposes (e.g. to be used in b

Diego Essaya 15 Dec 22, 2022
This is Minesweeper coded in Python. It has almost all features from the main game

Minesweeper This is Minesweeper coded in Python. It has almost all features from the main game Use right click to open tile, right click on an open ti

3 Jul 12, 2022
游戏中按TAB键查看所有玩家分数的小程序

DDNet-show-points-in-game DDRaceNetwork 游戏中按TAB键查看所有玩家分数的小程序

3 Oct 13, 2022
A Minecraft clone written in python and pyglet.

PyCraft A Minecraft clone written in python and pyglet. Running PyCraft To run PyCraft, run the following code: git clone https://github.com/TheWebCra

The WebCrafters 17 Dec 29, 2022
Open source translation for the Tsukihime Remake game

Tsukihime-Translation Open source translation for the Tsukihime Remake game prepared by Clovermoon and Tsukihimates. Copyright Disclaimer under Sectio

118 Jan 01, 2023
Ultimaze est un jeu en 2.5D, réalisé dans le cadre d'un projet de NSI.

Ultimaze Ultimaze est un jeu en 2.5D, réalisé dans le cadre d'un projet de NSI. La consigne était d'utiliser la librairie pygame pour créer un jeu en

parlabarbedeMerlin 3 Sep 17, 2022
Blackjack Game made using Python

Blackjack Game made using Python Blackjack is a popular card game played in most of the casino.This is an intuition to replicate the same card game us

SUHASJAGADISH 1 Nov 28, 2021
NSI project --> 2D platformer in Python with Pygame

Projet de NSI (2021-2022): Jeu sous Python Collaborateurs: Remi K-S et Nathan D Lien de l'environnement IDE de Python en ligne: https://replit.com/@Re

Remi K-S 3 May 24, 2022
An entropy-based strategy to wordle

An entropy-based strategy to wordle

Gilles Vandewiele 24 Dec 31, 2022
🕹️ Jeu Azul en Python avec 4 IAs 🤖 implémentées, jouable de 1 à 4 joueurs

Projet jeu Azul 🕹️ Jeu Azul en Python avec 4 IAs 🤖 implémentées, jouable de 1 à 4 joueurs Par : Berachem MARKRIA et Tristan MARTINEZ Projet réalisé

Berachem Markria 2 Jun 07, 2022
A python program for playing rock-paper-scissors with computer .

Rock_Paper_Scissors_Cut A time passing famous hand game known as rock paper scissors cut game. Starting from children to adults everyone plays this ga

Arghya Banerjee 1 Dec 16, 2021