Coder Social home page Coder Social logo

ayushmaanbhav / stockmart Goto Github PK

View Code? Open in Web Editor NEW
26.0 6.0 19.0 1.28 MB

A java based multiplayer Virtual Stock Exchange Game (VSE)

Home Page: http://ayushmaanbhav.github.io/stockmart/

License: MIT License

Java 100.00%
stock money vse game multiplayer real-time stock-exchange stock-market stock-trading-game

stockmart's Introduction

StockMart

A java based Virtual Stock Exchange Game (VSE)
Want to know more about Stock Markets? Here: https://www.youtube.com/watch?v=F3QpgXBtDeo

Description:

I developed the application in two parts, a client applet which interacts with a server application via TCP. The features of the client applet include live ranking, chat discussion, news items, company stocks and their market values, the status of share market and sensex. The features of the admin application (server) include live view of the users, their details, stocks and money, set news items, set time limit, block chat, delete user, view rankings, chat discussion and edit stock prices.

Features and Improvements (Branch: real-bid):

Introduced real bidding whereas the code in the master branch operates on Monte Carlo simulation and there is no real bidding. Introduced many new features like bid graphs and order queue graphs !!! Fixed many bugs.... Developed a matching engine for matching orders or bids..... Improved code structure....

Guidelines

Server

* money.txt: specify user's initial money. user will get that money and some random shares of the same value.
* companies.txt: specify the companies and their initial share value just after their name, separated by a ":", ignore rest of the values. eg:
"Reliance:260"
(one company per line)
* reg.txt: if only user with allotted regnos are to be able to play then specify the registration nos in this file, (only small chars and numbers), you can disable the regno. checking by clicking on the button "CheckREG" on the main screen.
* Start server by double clicking it, set the time limit, wait for the users to connect, finally start the server by clicking the start button...
* You can add spice to the game by using the text area below to show news to the users. "ONE NEWS ITEM PER LINE". News about companies to fluctuate the prices. :) Eg. of a positive news:
"Microsoft announces Windows 10. This new version will thrill the users."
* You can view users in the user panel, increase their money, give them bonus, increase their chat, change their pass, ban and delete them, view their stocks and orders... etc
* You can view the pending orders in the order queue and manually cancel them if necessary or u face any problem.

Client:

* Start client by cmd prompt or terminal by giving ip of the server as the first argument eg:
"java -jar StockMartClient.jar -localhost"
* Register (each field is restricted to use only small chars and nos.), login and start playing.

Screenshots:

Server:

Client:

stockmart's People

Contributors

ayushmaanbhav avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

stockmart's Issues

Server Side Doesn't Seem To Host

I am testing this locally prior to trying to implement it as a way to do a simulated stock exchange for a political simulation server.

Upon launching and starting the server and then launching the client while running on local host.

java -jar StockMartClient.jar -localhost

I register with the CHKRegNo turned off on the server side. I proceed with valid information, click the register button, and after a second or so I get this error inside the command prompt used to launch the client.

Don't know about host
java.lang.NullPointerException
at com.ayushmaanbhav.jstockmart.client.Client.register(Client.java:76)
at com.ayushmaanbhav.jstockmart.client.RegisterAction$4.run(RegisterAction.java:59)

I should note that I also did try using my local IPV4 found in ipconfig. Neither of those worked.

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.