server icon indicating copy to clipboard operation
server copied to clipboard

Convert Flowers game logic and types to TypeScript

Open adowning opened this issue 5 months ago • 2 comments

  • Defined TypeScript interfaces and types for relevant parts of the github.com/slotopol/server/game and github.com/slotopol/server/game/slot packages.
  • Converted reel data from YAML files to TypeScript constants.
  • Ported Go files flowers_rule.go, flowers_calc.go, and flowers_link.go to their TypeScript equivalents (.ts).
  • Ensured that the TypeScript code replicates the original Go logic for game rules, calculations, and metadata registration.
  • Created new files under src/game/slot/netent/flowers/ and src/game/slot/ and src/game/ for the new TypeScript code and type definitions.

adowning avatar Jul 11 '25 01:07 adowning

xdvdv

adowning avatar Jul 11 '25 01:07 adowning

Hi, I think that the best way is to keep the typescript sources as independent project. Key feature of golang project is multithreaded. There is no way to implement multithreaded reels scanner in typescript as it in the golang, and multithreaded web-server. Typical workaround for this is to run in Docker several nodes with instances of service written in ts/js. And so those services can not use database in monopoly way. And so architecture of this new project will be differ, with more conversations to database, and external cache for database usage. Or project on typescript can release API on AWS lambdas.

schwarzlichtbezirk avatar Jul 17 '25 23:07 schwarzlichtbezirk