Code Monkey home page Code Monkey logo

hubot-wizards-duel's People

Contributors

pwolfert avatar

Watchers

 avatar  avatar

hubot-wizards-duel's Issues

Put all duel state in one record

Right now information for a given duel between two players is stored under a few keys, and there's no real performance benefit to doing that. We should just get the full duel state once we receive a command and pass that to all the functions and save one thing at the end.

It would also be nice to somehow refactor it to actually not mutate the state as we pass it to these functions. That being said, debugging is somewhat difficult in this app, so I should probably look into different ways to debug.

Port to BotKit

The Slack adapter for hubot is deprecated. BotKit seems to be a pretty stable and portable framework that I could move it to instead.

Use pure functions that don't mutate state

Refactor to make the Player, Spell, ..., modules a series of pure functions that return a new state. As spell interactions get more complex, it's harder to keep track of the state changes and make sure we don't introduce bugs caused by data mutation.

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.