This project contains the backend logic for a simple slot machine game. It is written in TypeScript and uses object-oriented principles to simulate spins and calculate payouts based on a predefined game configuration.
- Node.js (version 12 or later recommended)
- npm (usually comes with Node.js)
Clone the repository to your local machine:
git clone https://github.com/yourusername/slot-game-backend.git
cd slot-game-backendInstall the required npm packages:
npm installCompile TypeScript
npx tscTo run a single spin of the slot game:
npm start├── LICENSE
├── README.md
├── package-lock.json
├── package.json
├── src
| ├── index.ts
| ├── models
| ├── simulate.ts
| ├── types
| └── utils
└── tsconfig.json