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
Open source Brawl Stars server emulator for version 29 of the game!

Welcome to Classic-Brawl v29 Remake 👋 Open source Brawl Stars server emulator for version 29 of the game! (Remake) What's working ? Battles Trophies

CrossFire 4 Jan 19, 2022
Warden - Warden guessing game 1

Warden first python project and first posted project sorry for errors warden gue

hasher 3 Jan 09, 2022
A game based on Motus, to be played on Unix terminals.

Motus python game A game based on Motus, to be played on Unix terminals. How to play? Before playing, you need to install all the requirements needed

Arthur Molia 1 Feb 02, 2022
SuperChess is a GUI application for playing chess.

About SuperChess is a GUI application for playing chess. It is written in Python 3.10 programming language, uses PySide6 GUI library, python-chess lib

Boštjan Mejak 1 Oct 16, 2022
Given some input, spit out the possible words for a Wordle puzzle

Wordle Helper, because why not. Given some input, spit out the possible words for a Wordle puzzle First time setup # Download the dictionary to a file

Richard Duarte 1 Jan 25, 2022
OpenGL experiments with Pygame & ModernGL

pygame-opengl OpenGL experiments with Pygame & ModernGL TODO Skybox & Reflections Post-process effects (motion blur, color correction, etc..) Normal m

Kadir Aksoy 4 Oct 28, 2022
This is a python interactive story game that I made to show off what I've learnt in python coding for a month

Purpose The files in this repository are for that of a story game created with python version 3.8.5 The purpose of this project was to get familiar wi

0 Dec 30, 2021
Code infrastructure and player algorithms for the Codenames board game.

Codenames Code infrastructure and player algorithms for the Codenames board game. This is the active fork of mkali-personal/codenames. Intro This is b

Asaf Kali 1 May 18, 2022
🐍 Conway's Game of Life cellular automaton implemented in PyGame

Conway's Game of Life My PyGame implementation of Conway's Game of Life. This implementation involves treating all edges of the grid as stitched toget

Mateusz Żebrak 1 May 29, 2022
The main objective of the game is to destroy multiple waves of asteroids with the help of a blaster mounted on the spaceship.

Astronomia: let the exploration begin The main objective of the game is to destroy multiple waves of asteroids with the help of a blaster mounted on t

Aryan Nath 8 Nov 18, 2022
Flappy Bird Game using Pygame in Python

Flappy Bird Game using Pygame in Python Demo Pages Hello dear, hope you are very well! I created Flappy Bird Game using Pygame ( Pygame is a cross-pla

Datt Panchal 3 Feb 05, 2022
2d war game single player

WarGame-third-version-0.0.4- 2d war game single player Hi ! Today, I publish on GitHub the version 0.0.4 of "WarGame". In this version, you can find a

Edouard Vincent 2 Apr 08, 2022
What games should I design next quarter?

Project1_Next-Quarter-Game-Design-Prediction What games should I design next quarter? 상황 : 게임회사 데이터팀 합류 문제 : '다음 분기에 어떤 게임을 설계해야할까' Data Description N

Jayden Lee(JaeHo Lee) 1 Jul 04, 2022
A menu for pygame. Simple, and easy to use

pygame-menu Source repo on GitHub, and run it on Repl.it Introduction Pygame-menu is a python-pygame library for creating menus and GUIs. It supports

Pablo Pizarro R. 411 Dec 27, 2022
ReplitTD - Replit Tower Defense Game

IMPORTANT: I mean no offense at all in this game, this is only based off of cycl

kokomi simp :3 3 Jun 25, 2022
The original Tetris tile-matching game as adopted by IBM PC.

🕹️ Tetris Game The original Tetris tile-matching game as adopted by IBM PC. Game developed purely on python using the Dear PyGui Framework. 📖 Instru

14 Nov 12, 2022
Lint game data metafiles against GTA5.xsd for Rockstar's game engine (RAGE)

rage-lint Lint RAGE (only GTA5 at the moment) meta/XML files for validity based off of the GTA5.xsd generated from game code. This script accepts a se

GoatGeek 11 Sep 18, 2022
linorobot2 is a ROS2 port of the linorobot package

linorobot2 is a ROS2 port of the linorobot package. If you're planning to build your own custom ROS2 robot (2WD, 4WD, Mecanum Drive) using accessible parts, then this package is for you. This reposit

linorobot 195 Dec 29, 2022
Open-source project written in the ursina engine, simulating the popular game Minecraft.

Voxelcraft is an open-source project written in the ursina engine, simulating the popular game Minecraft.

Calinescu Mihai 21 Oct 06, 2022
Replicating Minecraft World Generation in Python

Minecraft World Generation in Python This is an attempt to replicate Minecraft world generation in Python. This is part of an article published on Med

Bilal Himite 159 Dec 19, 2022