Coder Social home page Coder Social logo

drugwars's Introduction

drugwars

drugwars is a simple trading game where you try and make as much money as you can in a set time period (try either a week for a quick game, or a month for a longer one), with some surprises along the way. Move between cities to get different prices for your drug stash, and remember the golden rule: buy low, sell high!

For reference, the drugs fluctuate between the prices listed in the parenthesis, but they can change wildly with events.

Drugs("Cocaine", (15000, 28000)),
Drugs("Heroin", (2000, 10000)),
Drugs("Weed", (300, 1000)),
Drugs("Hash", (200, 1200)),
Drugs("Opium", (400, 1800)),
Drugs("Acid", (1000, 4200)),
Drugs("Ludes", (18, 75))

You can also get stopped by officer Leroy and have some cash/drugs taken.

So yeah, that's about it. Nothing too riveting, but its a neat time killer if you've got a few minutes.

usage

I've included a .py file if you've got python installed on your machine. If you want the standalone game, take the drugwars.exe file in the dist folder.

Grab the high_scores.pickle file and keep it in the same folder as drugwars.py or drugwars.exe to keep count of highscores. You don't need this, and the functionality will be ignored if the file is not present. But nobody will believe you made 500k in a week unless they can see the pickle :p

drugwars's People

Contributors

reconfirefly avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.