GithubHelp home page GithubHelp logo

connect4xyz's Introduction

Connect4.xyz

A game inspired by chess over nostr - jesterui.

Play Connect4 over nostr. https://connect4.xyz

Anyone is free to host this game themselves, but please dont cheat! :D I am deploying to github pages via the docs folder in this repo.

Why?

You dont have to pay anything to host this game, and it will never go down, because someone can always host it, or run it locally.

web3 games are bullshit centralised facades.

At least with this game you can play it with zero need to trust a single server, and as long as a nostr relay exists somewhere on the internet, this game will continue to work.

Ofc you have to be honest yourself but this is only really meant for playing with friends, you can cheat at connect4 in real life but it would be a bit weird. xD

Nostr Events Used

Clients connect to relays and check for notes with the tag connect4.xyz game_id = {} where game_id is the id of the game, which is randomly generated and added to the URL.

Players can share this url to invite others to play or spectate.

The first two players in the game will listen to each others pubkey to avoid shenanigans. All other players who connect will be in spectate mode.

1. New Game

event to list a new game.

Kind: Regular(4444)

2. Join Game

event sent by the second player to join the game lobby.

Kind: Regular(4444)

3. Send Input

To relay game inputs.

Kind: Regular(4444)

Building and Running Locally

Install trunk to build and serve locally.

Serve locally with trunk

./build.sh dev

Build locally with trunk

./build.sh release

connect4xyz's People

Contributors

stutxo avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

luvnft

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.