ddsnowboard / FantasyStocks

A website where you play a game of fantasy stocks.
http://fantasystocks.herokuapp.com
Apache License 2.0
0 stars 1 forks source link

Add a lot of functionality #23

Closed ddsnowboard closed 8 years ago

ddsnowboard commented 8 years ago

Where do I even start...

  1. I refactored the StockWidget code so that it is easier to put into a form.
  2. I set up the StockWidget so that you could change where it gets its stocks from outside, so that I can put it in the Trade page and have it only show the stocks that you can actually pick.
  3. Wrote the whole Trade Page. That was a complicated thing, involving another (simpler) widget for picking players and a script that controls all the widgets and makes them work together.
  4. Added the ability to accept, deny, or counter trades. That actually worked almost better than I expected. There was one hiccup, but once that was fixed, it was smooth sailing. I even did it in a slick, DRY way. 10/10
  5. Finally add the ability to add new stock to floors if the floor supports that. It asks the owner if the floor is permissive, and I made a nice fake window for confirmation.
  6. You can leave floors now.
  7. I made this work with Heroku. There are a couple of files in here now that Heroku will read and use to run it, and it actually works. Eventually (read: soon), I'm going to set it up so that Heroku will automatically serve whatever is newest on the master branch on GitHub, so that'll be nice.

Even after this, there is still a lot to do. The most important thing it to implement scoring, which I still have almost no idea about. I wrote something about it at some point, and I'll have to read that and see what I can do. After that, I'll be close, but still not done yet. But y'know. I'll figure it out.