zoltantothcom / Design-Patterns-JavaScript

A game to test your familiarity with the ‘Gang of Four’ design patterns implemented in JavaScript.
https://designpatternsgame.com
The Unlicense
605 stars 35 forks source link
javascript javascript-design-pattern javascript-game

Design Patterns Game

Build Status Coverage Status Codacy Badge Greenkeeper badge

Design Patterns - a quick game to test your familiarity with the 'Gang of Four' design patterns implemented in JS.

:zap: PLAY HERE

Design Patterns - game results screenshot

About

This is a small game to get you familiar with all the 23 Gang of Four design patterns implemented in JavaScript.

Creational Patterns

Structural Patterns

Behavioral Patterns

How To Run Locally

  1. Clone this repo
git clone git@github.com:zoltantothcom/Design-Patterns-JavaScript.git
  1. Switch to project folder
cd Design-Patterns-JavaScript
  1. Install all the dependencies
yarn
  1. Time to start the engine
yarn start
  1. Voila! The project is running on http://localhost:8080

Running the Tests

yarn test
yarn test:coverage

Inspiration and Credits

If you want a deeper dive into the subject feel free to check out Learning JavaScript Design Patterns by Addy Osmani.

License

Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means.

See Unlicense for full details.