Giter Club home page Giter Club logo

pendwa-crossword-state's Introduction

Pendwa's Crossword Solving State

Before you begin...

  • This is for inspirational purposes only as people are curious how exactly the crossword works.
  • This code was extracted from Pendwa's private repository and made public. Many more components are left out so it will not run by itself ๐Ÿ˜ž.
  • Last updated: April 23rd, 2020.

Prerequisites

  • Redux JS. The entire state of the crossword while solving can get pretty complex. To make things a bit easier, it is always better to separate the state from the view (React, not included).
  • Typescript (for our own sanity). Really, the only reason coding in Javascript makes sense.
  • Smile ๐Ÿ˜ƒ.

Structure

  • ac.ts - Redux action creators.
  • fns.ts - Collections of useful re-usable functions that mutate our redux state and return a new state.
  • selectors.ts - Collections of useful re-usable selectors to select ๐Ÿ˜… data from our very complex state.
  • reducers.ts - Take an action, return a new state. The backbone of Redux really. Since the state is very complex, the reducer is also very complex. Most of it is very expressive so the patient reader will get something.
  • persist.ts - Persisting useful info to Indexed DB so we can survive browser refreshes and offline situations.
  • models/... - Models for things like Cells e.t.c

License

MIT licensed - in short free to copy/use/modify/re-distribute ๐Ÿ˜‡.

pendwa-crossword-state's People

Contributors

jovinbm avatar

Watchers

James Cloos avatar  avatar  avatar Ben_Aug 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.