brentstineman / buttonpong Goto Github PK
View Code? Open in Web Editor NEWA sample lab that demonstrates a simple game using Azure Serverless and Particle Internet Button Devices
License: MIT License
A sample lab that demonstrates a simple game using Azure Serverless and Particle Internet Button Devices
License: MIT License
Hi!
I'm seeing a mismatch in code between the firmware and the API for triggering a winner. (See #18 for my first stab at this issue).
The firmware is expecting a timeout value of "-1" to be sent to trigger the "game won" state. See:
https://github.com/brentstineman/ButtonPong/blob/master/firmware/src/buttonpong.ino#L160-L166
The API is invoking a "winner" wekhook which is expecting a function called "winner" existing in the firmware. See:
https://github.com/brentstineman/ButtonPong/blob/master/api/csharp/CloudAPI/PingManager.cs#L83-L88 and
https://github.com/brentstineman/ButtonPong/blob/master/api/csharp/CloudAPI/Infrastructure/ParticleDeviceCommunicator.cs#L84-L87
Either the API needs to be updated to not call the "winner" webhook and use the "-1" timeout instead or the firmware needs to be updated to only trigger a winner event in a new function called "winner" (like #18 but also removing the code in the ping function.
Thoughts?? I'd be more than happy to change the code and submit a pull request once the proper "winner" triggering method is determined. I think adding a "winner" function to the firmware is the more ideal approach since it's more clear.
Thanks!
Mikael
Implement a NodeJS version of the API to allow for non-.NET developers to easily work with the API code. Should exist side by side with the .NET API version.
All attempts to call the device API from the Function API are fire and forget. These need to be made more resilient.
Revamp .Net API to allow deployment via command line or a linked repo by removing requirement that it has to be complied and deployed via Visual Studio. Need to maintain support for local testing, perferrably via Visual Studio.
Add instructions to the repository for running hack events. Be sure to include:
Enhance the game reset API so that it will send a reset signal to the buttons to reset their internal game state. This also requires adding a new function to the device to accept such a call.
Fix threading issues with in the Start Game API.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.