Skip to content

DemonHashira/Slot-Game-Backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Slot Game Backend

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.

Getting Started

Prerequisites

  • Node.js (version 12 or later recommended)
  • npm (usually comes with Node.js)

Installation

Clone the repository to your local machine:

git clone https://github.com/yourusername/slot-game-backend.git
cd slot-game-backend

Install the required npm packages:

npm install

Compile TypeScript

npx tsc

Running the Game

To run a single spin of the slot game:

npm start

Project Structure

├── LICENSE
├── README.md
├── package-lock.json
├── package.json
├── src
|  ├── index.ts
|  ├── models
|  ├── simulate.ts
|  ├── types
|  └── utils
└── tsconfig.json

About

A simple slot-game done using TypeScript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published