futgui icon indicating copy to clipboard operation
futgui copied to clipboard

Separate sniper logic from gui

Open oczkers opened this issue 9 years ago • 3 comments

Few months ago i've created fab repo with the plan to create autobuyer but as You can see almost year later it's still empty. Fortunately Your great project appeared so let me propose structure for futgui (just an idea so no code yet):

  1. part (or maybe separate project because it's probably gonna be huge): "sniper logic" api - full independent, i mean not depend on gui code so we can run this for example on linux server that doesn't want any gui. It should simply run without any changes in code - user is configuring all logic just in one file (some kind of config.ini)
  2. part: "gui addon" that adds gui to first part.

oczkers avatar Nov 16 '15 20:11 oczkers

This idea is pretty nice, considered that it would allow also to test the logic (which now is entangled with the UI). I vote for it.

franzhcs avatar Nov 16 '15 21:11 franzhcs

I like the idea. Interested to see how you would break out the code. All of the "bidding logic" is in core/bid.py already. It probably would be good to pull the error handling out of the frames and put it in the core logic somehow.

hunterjm avatar Nov 17 '15 02:11 hunterjm

The newest release has all bidding logic located in core/bid.py with no external requirements from the frame other than the api instance, player list, and settings dictionary.

hunterjm avatar Nov 25 '15 05:11 hunterjm