Loops HouseEngkwentro

NEAR HACKATHON
Team
1 member- JEOwner
Jed Aureus Gonzales
Overview
I took a game that only works if the pieces stay face down and put it on a chain that publishes every byte. How would that work? Engkwentro is my attempt at answering that problem.
Inspired by Salpakan, or more popularly known as Game of the Generals, it's a modern take on the classic Filipino strategy board game. In a real life game, a third person peeks at both pieces and says who won. We're taking trust out of the equation and letting the devices decide on their own. The pieces on your phone. NEAR stores a SHA-256 hash of the rank and a salt, the squares everyone is allowed to see, and a fight result only when both players report the same one. Go quiet and you forfeit. The reports don't match and the match is void. When it's over you open the hashes, and the contract replays what you claimed. Lie about your own piece and you lose.
Every move is recorded in the NEAR blockchain. I tried to make the game as serverless as I can. A game that would live purely on-chain, broadcast into devices.
Two phones. Make a match, pass a 12-character key, set down 21 pieces, play until someone takes the flag.
I've detailed all of my findings, observations and potential use cases for the approach in the docs section of my repository. What I envision is that the game would be a jumping off point for more creative uses of NEAR for many other applications.
The market is too saturated with DeFi and similar applications. While it's all well and good, I strongly believe that NEAR is meant for more. NEAR should be ubiquitous and I want to be part of that hyperadoption initiative to get NEAR into everyone's radar.