You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To host the website, serve the files in the root project directory, like so:
4
+
```
5
+
# You can pick python, apache, or anything really
6
+
python3.7 http.server 8080 # Use python 3.7 as this version fixes the socket issue with chrome
7
+
```
8
+
If you have any really cool algorithms, I encourage you to open an issue and post it there.
9
+
10
+
The website's CSS making your eyeballs bleed? Open a pull request and comment how lazy I am on styling the website properly while sharing your awesome CSS!
<spanclass='info-before'>Amount of money earned:</span><spanclass='info-after'></span><br>
27
+
<spanclass='info-before'>Amount of buy decisions:</span><spanclass='info-after'></span><br>
28
+
<spanclass='info-before'>Amount of sell decisions:</span><spanclass='info-after'></span><br>
29
+
<spanclass='info-before'>Amount of cheating sells:</span><spanclass='info-after'></span><br>
30
+
<spanclass='info-before'>Amount of stock left:</span><spanclass='info-after'></span><br><br>
31
+
<buttononclick='run()'>Run simulation</button><buttononclick='if(window.confirm("Are you sure you want to clear everything?")){window.localStorage.removeItem("savedProgram");window.location.reload()}'>Clear saved program and reload</button>
32
+
</div>
33
+
<divid='main-code'>/*
34
+
This is the space that you need to program in javascript, to create your own stock algorithm.
35
+
There should be a "main" function, so that parameters can be passed in.
36
+
Also, the main function should return either true for buy, false for sell, and undefined (no return) for no action.
0 commit comments