Giter Site home page Giter Site logo

slotmachine's Introduction

This was written 15 (maybe 13-ish?) years ago when I started dabbling in JavaScript, I think.

This is by far the most badly written and ridiculous piece of shit I've ever written. It's also the most starred. There's also about 8 forks (wow, 8!) of it, most probably by people who thought they could extend it until they saw the source code.

Unfortunately it seems I've fixed the code style out of shame about a decade ago.

That's a damn shame because the original implementation was doing some really bizarre shit with globals, trying to emulate an array-like list or something, because I didn't really know know how to work with Arrays.

Just to make things even worse for the next person who decides to fork this piece of crap - I've changed the license - this is now a closed-source, $ 1000-a-pop piece of software.

Not open source.

Enjoy - this is my magnum opus.

Demo: nicholaswmin.github.io/slotMachine

SlotMachine.js


  • Uses Paper.js - An HTML5 canvas wrapper for easier shape manipulation
  • Plug+Play - define your own fruit images in index.html
  • Uses Math.Random() to generate a seed.
Tech used
Changing the fruit images
  • Some images are already defined in index.html.
  • You can change their src's to the one's you want
  • Pay attention to the image id's/classes, widths & heights. Make sure you match them
Where are the results logged?
  • In the console
License

All Rights Reserved

Copyright (c) Nicholas Kyriakides

THE CONTENTS OF THIS PROJECT ARE PROPRIETARY AND CONFIDENTIAL. ๐Ÿ˜‚๐Ÿ˜‚ UNAUTHORIZED COPYING, TRANSFERRING OR REPRODUCTION OF THE CONTENTS OF THIS PROJECT, VIA ANY MEDIUM IS STRICTLY PROHIBITED.

The receipt or possession of the source code and/or any parts thereof does not convey or imply any right to use them for any purpose other than the purpose for which they were provided to you.

The software is provided "AS IS", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and non infringement. In no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the software or the use or other dealings in the software.

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the software.

Author: Nicholas Kyriakides(@nicholaswmin)

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.