zoltantothcom/Design-Patterns-JavaScript
关于
用于测试你对用 JavaScript 实现的“四人帮”设计模式熟悉程度的游戏。
学习与教育实测星标增长
- 24小时
- 0
- 7天
- -1
- 15天
- -3
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Design Patterns Game
Design Patterns - a quick game to test your familiarity with the 'Gang of Four' design patterns implemented in JS.
:zap: PLAY HERE

About
This is a small game to get you familiar with all the 23 Gang of Four design patterns implemented in JavaScript.
Creational Patterns
- Abstract factory
- Builder
- Factory method
- Prototype
- Singleton
Structural Patterns
- Adapter
- Bridge
- Composite
- Decorator
- Facade
- Flyweight
- Proxy
Behavioral Patterns
- Chain of responsibility
- Command
- Interpreter
- Iterator
- Mediator
- Memento
- Observer
- State
- Strategy
- Template
- Visitor
How To Run Locally
- Clone this repo
git clone [email protected]:zoltantothcom/Design-Patterns-JavaScript.git
- Switch to project folder
cd Design-Patterns-JavaScript
- Install all the dependencies
yarn
- Time to start the engine
yarn start
- Voila! The project is running on http://localhost:8080
Running the Tests
- To run the tests
yarn test
- To see the detailed test coverage
yarn test:coverage
Inspiration and Credits
Inspired by the very well-known JavaScript Guessing Game
Code samples impudently taken from the awesome compilation of Design Patterns JS
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.
探索相关项目
加载中…