Skip to content

Conversation

@adowning
Copy link

  • 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.

- 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
Copy link
Author

xdvdv

@schwarzlichtbezirk
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants