Skip to content

Latest commit

 

History

History
20 lines (16 loc) · 752 Bytes

File metadata and controls

20 lines (16 loc) · 752 Bytes

react-slots

A nice lightweight Slot Machine Implementation in React.js

Local Setup

If you're going to do any editing -

sass --watch slots.scss:slots.css &

Explanation

While working on a slot machine implementation for a coding exercise, a friend suggested I take a look at React.JS.

Structure

index.html is mostly comprised of includes for react and css. Save for the

the dom is generated by React and lives in

app.js contains the render() calls for the virtual dom as well as logic for random slot state generation, and win states.

Bragging

The slot icons and win state icons were drawn up with a touch-pad in Illustrator. ...I should buy a new a pen for my Wacom tablet.