GithubHelp home page GithubHelp logo

libkq's Introduction

libkq

Killer Queen Library for Event Processing and State Tracking in Golang

libkq's People

Contributors

whod81 avatar kevinsnydercodes avatar

Stargazers

Chris Baldwin avatar  avatar

Watchers

James Cloos avatar Chris Baldwin avatar  avatar

Forkers

ughoavgfhw

libkq's Issues

Third Party Triggers

Ability to add custom-written triggers that run along with the provided triggers. For instance a trigger on a game end event might run the normal state.endGame state.resetStats ... etc but also might run a user-provided function that sends an OBS websocket call.

Event to Trigger to State Engine Framework

libkq frontend should be bleak -- state can be pulled via an HTTP request which simply returns JSON.

Three different portions of code.

  1. . Websocket client that processes events. on event call trigger.
  2. . Triggers. Each trigger should be named according to the KQ event. They then make changes to the game state. example would be trigger.playerKill would call state.killAdd for the winner and state.deathAdd for the victim.
  3. . State. Modified over-arching data object of the "game" from totals down to each players individual stats. state calls should preferably not call other state calls, and should mostly be called by trigger functions. State functions should also have a reporter that returns the current value.

TODO: Simple "Cab Simulator"

kqstats had a pretty cool feature that let you replay logs back in for testing.

Would like to do that again except maybe make the cab simulator a separate program all together. This would make unit testing harder but also I hate testing anyway.

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.