{"id":18057218,"url":"https://github.com/m4cs/drugwars","last_synced_at":"2025-04-11T04:41:15.606Z","repository":{"id":57424231,"uuid":"302583990","full_name":"M4cs/drugwars","owner":"M4cs","description":":moneybag: The Classic 80s MS-DOS Game re-written in Python :moneybag: Play in Console or in your Browser","archived":false,"fork":false,"pushed_at":"2020-10-20T02:21:57.000Z","size":116,"stargazers_count":59,"open_issues_count":2,"forks_count":13,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-25T02:43:55.240Z","etag":null,"topics":["drugwars","game","python"],"latest_commit_sha":null,"homepage":"https://drugwars-online-version.m4cs.repl.run/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/M4cs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"M4cs","patreon":"maxbridgland","custom":["https://paypal.com/maxbridgland"]}},"created_at":"2020-10-09T08:44:50.000Z","updated_at":"2025-01-15T05:49:54.000Z","dependencies_parsed_at":"2022-08-23T16:40:07.768Z","dependency_job_id":null,"html_url":"https://github.com/M4cs/drugwars","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/M4cs%2Fdrugwars","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/M4cs%2Fdrugwars/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/M4cs%2Fdrugwars/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/M4cs%2Fdrugwars/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/M4cs","download_url":"https://codeload.github.com/M4cs/drugwars/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248345276,"owners_count":21088242,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["drugwars","game","python"],"created_at":"2024-10-31T02:07:05.320Z","updated_at":"2025-04-11T04:41:15.568Z","avatar_url":"https://github.com/M4cs.png","language":"Python","funding_links":["https://github.com/sponsors/M4cs","https://patreon.com/maxbridgland","https://paypal.com/maxbridgland"],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://i.imgur.com/pvKzM9G.png\"\u003e\n  \u003cbr\u003e\n  \u003cimg src=\"https://pepy.tech/badge/drugwars\"\u003e\n  \u003cimg src=\"https://img.shields.io/github/issues/M4cs/drugwars\"\u003e\n  \u003cimg src=\"https://img.shields.io/github/stars/M4cs/drugwars\"\u003e\n  \u003cbr\u003e\n  \u003ca href=\"https://discord.gg/2Xjc5fm\" target=\"_blank\"\u003e\u003cimg src=\"https://images.squarespace-cdn.com/content/v1/52290b27e4b0d4e459887aa9/1523645697591-KOD97HRR5QMOQ99BU0SK/ke17ZwdGBToddI8pDm48kPGHCmdEuDVllAdzL7xM7OxZw-zPPgdn4jUwVcJE1ZvWQUxwkmyExglNqGp0IvTJZUJFbgE-7XRK3dMEBRBhUpyzorRYpSuI1QCKuYWJsZxMGWkkNP4-spN_NRwwEFqVwPzJYUtQepn4ZOWE62R4wIk/join-us-on-discord_1.png\" height=\"95\" width=\"300\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n# Drugwars\n### The DOS game from the 80s re-written in Python from Scratch!\n\nPlay in your browser [Here](https://Drugwars-Online-Version.m4cs.repl.run)\n\n\n# Installation\n\n**Recommended:** Using pip\n\n```\npip3 install drugwars\n\n# To Update\npip3 install --upgrade drugwars\n```\n\nInstalling from source\n\n```\ngit clone https://github.com/M4cs/drugwars\ncd drugwars\npython3 setup.py install\ndrugwars\n```\n\n# How to Play\n\n### Gameplay\n\nThe game is played inside of your terminal and uses letters and numbers to select things and take part actions.\n\nYou 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.\n\nCops 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.\n\nYou 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.\n\nThere are events that can happen inbetween moving areas. These can either be good for you or bad, it's all random.\n\nYou 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.\n\n### Rules\n\n- You cannot go back to a location if you have chosen jet, you must travel somewhere else.\n- You can only go to the loan shark, bank, and stash in the Bronx.\n- You only have 30 days to make your money and pay back the loan shark.\n- Your debt increases each day with interest so pay it back ASAP\n- Your savings will increase each day with interest as well.\n\n### Controls\n\n**When asked yes or no questions:** Respond with `y` or `n`\n\n**When asked to (B)uy, (S)ell, or (J)et:** Respond with `b` to buy, `s` to sell, or `j` to jet\n\n**When asked to (R)un or (F)ight:** Respond with `r` to run, or `f` to fight\n\n**When asked where to go:** Respond with a number `1-6`, these correspond to a location on the table\n\n### Troubleshooting\n\n**I pressed buy or sell and I didn't mean to!**\n\nSimply choose a drug and set 0 as the quantity.\n\n**I jetted but want to go back.**\n\nYou can't this is a game mechanic. Be careful with your choices!\n\n# Why did I make this?\n\nDrugwars 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 :)\n\n# Changelog\n\nv1.3 (by aconamos)\n```\n- Added \"a\"/\"all\", \"h\"/\"half\", and percent values to selling/buying drugs\n- Added amount of days option\n- Fixed score going into negative\n```\n\nv1.2.1\n\n```\n- Fix End Game\n- Add Endgame\n- Change Coat Probability\n```\n\nv1.2.0\n\n```\n- Optimized Drug Stashes\n- Optimized Stash Menu\n- Optimized Classes\n- Optimized Helpers\n- Bug Fixes\n- Added Withdraw to Stash (it was missing lol)\n```\n\nv1.1.10\n\n```\n- Adds \"a\"/\"all\" and \"h\"/\"half\" features in Loan Shark and Bank\n```\n\nv1.1.9\n\n```\n- Fix infinite loop in Issue #2\n```\n\nv1.1.8\n\n```\n- Added difficulty screen\n```\n\nv1.1.7\n\n```\n- Fix loan shark balance\n- Fix input bugs\n```\n\nv1.1.6:\n\n```\n- Fix borrowing\n```\n\nv1.1.5:\n\n```\n- Fix actions breaking\n```\n\nv1.1.4:\n\n```\n- Remove Auto update\n```\n\nv1.1.3:\n\n```\n- Fix logic around pricing events\n```\n\nv1.1.2:\n\n```\n- Disable Actions from occuring first round\n```\n\nv1.1.1:\n\n```\n- Adds auto update check (Set DO_NOT_UPDATE to 1 to skip)\n```\n\nv1.1.0:\n\n```\n- Adds upgrade trench coat\n- Changes chances of getting away from Headass\n- Fixes crashing bugs\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm4cs%2Fdrugwars","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fm4cs%2Fdrugwars","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm4cs%2Fdrugwars/lists"}