Git Product home page Git Product logo

slotgame's Introduction

##################

slot game was wriiten in JS ES6

App.js serves as entry point.

js folder contains the source code for app.js and other js files vue js is used for data binding and jquery for dom manipulation

How to run

It is best to run code on a server (Any node, apache, ngnix etc server will work just fine)

  • IDE like webstorm can be used to lunch the html file in browser
  • Using Docker / Docker compose is possible with included docker compose file. Navigate to project folder in terminal / cmd and run
docker-compose up -d

Server will be live at: http://localhost:8080/

code is tested with latest version of chrome

Working version will be available at http://zinoadidi.site/ for a limited time

Note:

  • animation on the reel itself is the only item not submitted that isn't activated at submission time because it was commented out; i activated it after and committed the update.
  • Everything is designed to best understanding of the requirement pdf file i have included

Known Issue

  • Solved:Sometimes there are delays in updating the UI during spinning. this however doesnt affect the logic and everything works fine behind the scene. There are other options i have tried as regards spinning the UI and other options i didnt get to try but it can be optimized to work more effectively.

#observations

  • i wrote the scoring logic to work from top to bottom. if there are matching reels on the first line then it scores that line over the second line. the logic can be changed easily to accommodate scoring multiple lines with matching symbols or prioritizing the scores. I assumed we are scoring from top to bottom; first matching symbols.

slotgame's People

Contributors

zinoadidi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.