https://github.com/nventimiglia/stockgame
Unity3d Stock Game
https://github.com/nventimiglia/stockgame
Last synced: 6 months ago
JSON representation
Unity3d Stock Game
- Host: GitHub
- URL: https://github.com/nventimiglia/stockgame
- Owner: NVentimiglia
- Created: 2020-07-19T22:11:02.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-09-13T21:50:00.000Z (over 4 years ago)
- Last Synced: 2024-11-10T18:44:38.577Z (7 months ago)
- Language: C#
- Size: 2.8 MB
- Stars: 5
- Watchers: 1
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Stock Game
This is a tech demo demonstrating a stock market terminal. This is a best-practice tech demo, not a game played for enjoyment.

### Gameplay
The game-play features a buy button, a sell button, accounting balances, a candlestick chart, and a volume chart.### Architecture
The Architecture is MVVM (Model-View-ViewModel). Required framework code resides in the Framework folder. This code is minimal (under 100 lines for the observable library), and is game agnostic.### How To Play
- Press / Hold the Buy Button
- Press / Hold the Sell Button
- Observe things move### Key Files
#### StockSceneStartup
Initialization script. Wires dependent services for the scene.#### MockStockService
Business Logic Layer. Logic is hidden behind the IStockService facade, because the implementation is designed to be swapped out.#### StockViewModel
Binding / data source for the views. All visual elements connect to this script.#### Varius Charts / Views
Responsible for displaying parts of the UI. All connect to the StockViewModel as a datasource. Designed to be reused (ViewModel agnostic).### UML
```mermaid
graph LR
A[Stock Service]
A -- Query--> C(View Model)
C -- Observables --> D{Views}
D --Observables --> C
C --Commands--> A```
```