Git Product home page Git Product logo

ethboards's Introduction

ethboards

Ethboards is a smart contract platform to create generic two players boardgames on Ethereum. The smart contracts provided handle the state of the game and ensure the players play honestly their turn and don't cheat. Otherwise, the rules of the games are determined by custom smart contracts that can be written by anyone.

The rules that can be created are:

  • What are the possible actions of the pawn in the game
  • How can we determine a player won a game
  • What is the condition to enter a game
  • What actions happen when a player win or lose a game

The vision of this project is to create an ecosystem where people can create games with creative game rules and logics but also creative rules to participate in the game. For example, two players would must lock tokens or a specific asset to participate and the winner wins the locked assets.

Kind of a DeFied boardgames platform!

Smart contract platform

The smart contract platform provides smart contracts to handle 8x8 boards and simulate game turns that occur on this board. The user provides his own smart contracts that determine the pawn's behavior in the game. He also provides a smart contract that determines when a player wins the game.

The smart contract platform is composed of two smart contracts:

  • EthBoards: Game Logic contract. Provide the generic methods to simulate a turn in a game and methods for a user to claim victory

  • BoardHandler: Boards Content contract. Store all the information about the boards. For example: what are the different pawns used for a specific board.

The interfaces of the customizable smart contracts are:

  • Boards: The board's smart contract contains a function to check victory in the game and get metadata.

  • Pawns: The pawn's smart contract contains the functions describe the pawn behavior and metadata.

  • BoardEvents: The board events contract contains actions that are called when a player win or lose a game and condition to join a game.

More info here: Light Paper

ethboards's People

Contributors

lumtis avatar

Stargazers

sarhaan avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

cryptodevving

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.