Sudoku Funpark Clustered Services
|
|
пре 1 година | |
|---|---|---|
| client | пре 1 година | |
| flags | пре 1 година | |
| server | пре 1 година | |
| vars | пре 1 година | |
| .gitignore | пре 1 година | |
| .pre-commit-config.yaml | пре 1 година | |
| LICENSE | пре 1 година | |
| README.md | пре 1 година | |
| Taskfile.yml | пре 1 година | |
| go.mod | пре 1 година | |
| go.sum | пре 1 година | |
| main.go | пре 1 година |
Sudoku-Funpark Cluster Software: same as Sudoku-funpark, but networked.
While network and transport is done via WebSocket, traffic is sent using Python. ( 🤔 not sure if this is the smartest idea, as Golang isn't really that strong with JSON. 🫠 )
Agent => Manager:
Manager => Agent:
For ease of programming I would like start of easy and use ;-separated string to push values between manager and its agents. In this setup the format is predefined, and parsing will be based on the first field after the string is split on ;.
I still have the impression that Go and JSON is hard to do as the rigidness of Go does not go well with the free spirited nature of JSON. I might revise this in the future.
I intend use golang/sudoku-funpark for the code to determine workload and calculate the puzzles that need to be solved. And while this is all modular, it unfortunately isn't flexible enough to actually use it in the tool (or I am not trying hard enough).
Outputter Controller Export Flags Solver
controller := controller.Controller{}
outp := outputter.Outputter{}
export := export.Export{Controller: &controller}
flags := flags.Flags{Controller: &controller}
solver := solver.Solver{Controller: &controller, Outp: &outp}