Code Monkey home page Code Monkey logo

weather-machine-baseline's Introduction

你好,欢迎来到第1关生存舱!

生存舱有一个智慧农业的控制系统,该系统能根据温度、湿度、风力的变化来控制各种设备。为了让因灾害而失去家园的人们尽早地有能力自给自足,我们需要给这个系统添加新的设备。但是现在系统已经受损,无法在添加新设备时保证不影响原有功能。这个任务就交给你啦

你的任务:用观察者模式重构系统的代码,使添加新设备时不用担心影响原有功能(符合开闭原则)。

完成该任务即可重启生存舱,拿到能量水晶和方舟武士勋章,还有机会获得本舱位的实物补给。

注意:

后台会运行若干单测来验证程序的正确性,请不要修改提示了不允许修改的类或者方法的签名,以保证测试的正常运行。例如以下提示:
// Please don't modify the signature of this method.
// Please don't modify the class name.

weather-machine-baseline's People

Contributors

yellowdoge1996 avatar

Watchers

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