Code Monkey home page Code Monkey logo

oligopoly's Introduction

Oligopoly
A stock market betting game

GitHub Repository dotnet-console-games Repository C Sharp Language Target Framework Target Framework

๐Ÿ“– Description

Oligopoly is a command-line interface (CLI) game written in C# that allows players to buy and sell shares of various in-game companies. The value of these shares is affected by in-game events that occur every turn. The goal of the player is to buy shares of the company and then try to sell them at a higher price in order to increase their net worth.

โ•”โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•ฆโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•ฆโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•ฆโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•—
โ•‘ Company                        โ•‘   Industry โ•‘          Share Price โ•‘        You Have โ•‘
โ• โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•ฌโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•ฌโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•ฌโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•ฃ
โ•‘ Bingoo                         โ•‘        Web โ•‘              1372.28 โ•‘               1 โ•‘
โ•‘ Quantum Software               โ•‘   Software โ•‘              2094.98 โ•‘               0 โ•‘
โ•‘ Edison Incorporated            โ•‘     Energy โ•‘              1036.80 โ•‘               2 โ•‘
โ•‘ Netfilm                        โ•‘     Movies โ•‘               838.80 โ•‘               1 โ•‘
โ•‘ COBRA Security Consulting      โ•‘       Army โ•‘              1283.29 โ•‘               4 โ•‘
โ•‘ Rockland Games                 โ•‘      Games โ•‘               885.15 โ•‘               0 โ•‘
โ•‘ Astro Technologies             โ•‘      Space โ•‘              2319.93 โ•‘               0 โ•‘
โ•šโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•ฉโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•ฉโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•ฉโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

You have: 900.00$     Your Net Worth: 10317.83$     Current Turn: 10

[*] Wait For Market Change
[ ] Buy
[ ] Sell
[ ] More About Companies

โ— Disclaimer

Please note that all in-game companies and events in Oligopoly are completely fictitious and have no relation to real entities or events. They do not reflect the author's point of view on these companies and events, and coincidences are accidental. The game is intended for entertainment purposes only.

This is not a professional project, so don't expect high quality code or regular updates.

โ“ How to start the game

You can start the game using any of these methods:

Download release version of the game [Click to see more information]
  1. Go to the releases page.
  2. Find the latest game release and download .zip file, suitable for your operating system.
  3. Unzip the downloaded file to the folder where you will launch the game.
Compile the game using .NET Software Development Kit (SDK) [Click to see more information]
  1. Make sure that you have .NET Software Development Kit (SDK) installed.
  2. Download the game code.
  3. Open a command prompt (or terminal) and navigate to the directory where the downloaded code is located.
  4. Run the dotnet run command from the command line (or terminal).
Play online version of the game [Click to see more information]
  1. Go to dotnet console games repository.
  2. Find Oligopoly in the table and click Play Now.
  3. Also play other games from this repository :D

Note #1: This version of the game was created with the help of ZacharyPatten and therefore differs slightly from the one presented in this repository. If you want to play with your own companies or events, then use the methods above.

Note #2: You can also download the web version from the dotnet console games repository and run it locally.

After following any of these methods, you should be able to run Oligopoly in your command line (terminal). If for some reason you didn't succeed, let me know :D

Also, thanks for playing or trying to play this simple CLI game! It means a lot :P

๐Ÿ”Ž Additional information

If you want to add your content to the game or you are just curious about how the game files are organized for some reason, you can look at this kind of documentation.

โค๏ธ Special thanks

I want to give a special thanks to ZacharyPatten for creating the web version, as well as improving the code and concept of the game!

โš–๏ธ License

This project and Oligopoly logo are licensed under the MIT License.

oligopoly's People

Contributors

fuinny avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

oligopoly's Issues

Add menu to the game

Hi! I liked your idea of a game and now it looks good. I'd like to see a menu (pause) for the game, where I can load/save game and exit from it.

Data.xml isn't included in the solution

Data.xml isn't included in the solution and so isn't deployed when the project is built. This means the game doesn't function correctly unless this file is copied to:

...\Oligopoly\Oligopoly\bin\Debug\net7.0

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.