Game Matchmaking

Gas efficient smart contract SDK for Multiplayer Game Matchmaking

ETHGlobal San FranciscoShipped October 18, 2024#gaming#infra
Repo
Game Matchmaking banner

About

This project aims to create an immutable smart contract that can be used by any game developer to create a matchmaking queue for a multi-player game. Developers can use player rankings and other settings to define how players should be matched for a game. All an onchain game developer needs to do is call "regsiterGame" with the number of players per game and the "rankingRange" (ex. 200 ELO points in chess), then enter players into the queue and MatchmakingQueue will do the rest!

How it's made

This project uses Solidity smart contracts written for the EVM. The contracts can be called from game developers to enter players into a matchmaking queue. This project heavily uses Foundry's Forge tool for testing and gas estimates.

The main function of the contract is "enterPlayerIntoMatchmaking(address gameAddress, address player, uint256 playerRanking)" which "emits MatchMade(address[] players)" when a game full of players within "rankingRange" of each other are in the queue.

Right now the first version is "working" but quite gas inefficient. Instead of using an array as the data structure of the queue, I would like to use a binary search tree.

From the public ETHGlobal showcase page. Votes, swipes and the judge score are hackfeed's own.

AI judge

Not judged yet. A free model reads this page, compares it with similar projects and this event's winners, then scores it and says what would make it win.

Still being built?

Not checked yet.

Swipe stats

0upvotes
0skips
0saves

Discussion 0

No comments yet. Ask the team something, or say what you'd use it for.

Posting as a guest. Plain text, 1,000 characters max.

Already built nearby

Closest projects by meaning and shared words. Similar isn't the same as copied: read them.

Battle of Nouns

Dive into a Web3 strategy game on blockchain! Choose your civilization, earn NOUNS tokens, summon NFT characters, and battle in a decentralized, play-to-earn ecosystem. Governed by players, secured by smart contracts—own, build, and conquer! #PlayToEarn #NFTGaming

GridGame-HyperSwiper

Real-time trading arena. Slice coins, predict BTC, and settle on-chain. Powered by @Yellow @ENS

Power Clash

Step into the world of fair gaming with our blockchain-powered game which is built on top of ZkNoid SDK