Skip to content

dplusplus1024/bitcorn-hole

Repository files navigation

image

Bitcorn Hole 🌽🕳️

Bitcorn Hole is a physical hardware game where players earn bitcoin every time they score a point! Bean bags are tossed into the cornhole set and detected using microcontrollers with time-of-flight sensors. Each point scored triggers an instant payment of sats to the player’s Lightning Address! ⚡

Live Demo

See how the game works in action here and here.

What You’ll Need

To build your own Bitcorn Hole setup, you’ll need the following:

Massive thanks to Dani Go for her soldering help!

Code and Setup

There are three main code files in this repository:

  1. Frontend Webpage: This displays the game interface and real-time scoring updates.
    Frontend Code - Coming Soon | View Screenshot

  2. Microcontroller Code: This code runs on each microcontroller, hosting a web server and interfacing with the ToF sensor to detect when a bean bag is present.
    View Microcontroller Code

  3. API to Pay Sats: This handles the instant payments to players' Lightning Addresses. You can substitute your own API endpoint, and either run your own LND node or use a custodial API like ZBD.
    API Code - Coming Soon

Gameplay Instructions

Bitcorn Hole in Your Community

Did you bring Bitcorn Hole to your conference, community, or event? Brag about it here!

Disclaimer

This is experimental software. Use at your own risk. 🌽

About

Bitcorn Hole

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages