server
server copied to clipboard
Convert Flowers game logic and types to TypeScript
- Defined TypeScript interfaces and types for relevant parts of the
github.com/slotopol/server/gameandgithub.com/slotopol/server/game/slotpackages. - Converted reel data from YAML files to TypeScript constants.
- Ported Go files
flowers_rule.go,flowers_calc.go, andflowers_link.goto 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/andsrc/game/slot/andsrc/game/for the new TypeScript code and type definitions.
xdvdv
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.