Skip to content
This repository has been archived by the owner on Jul 8, 2023. It is now read-only.

(Smart Contracts) Add ability to forfeit? #2

Open
Da-Colon opened this issue Jan 2, 2023 · 0 comments
Open

(Smart Contracts) Add ability to forfeit? #2

Da-Colon opened this issue Jan 2, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@Da-Colon
Copy link
Contributor

Da-Colon commented Jan 2, 2023

Users should be able to forfeit a match?

Simple approach

  • Simple forfeit match that will declare the opposite team the winner? Problem is that in a real world case (for education purposes) a user wouldn't want to spend money to say they lost.

Possible approach

  • Allow a winning team to force a forfeit. that would require the opposing team to take their turn or risk a forfeit?
  • A winning team could execute a transaction that would set a blocknumber (some hardcoded value) that if past would no longer allow for the opposing team to take a turn and declare team one winner.

Possible approach expanded

  • Could possibly have a hardcoded timer (in blocks) for each user to take their turn. if time is past before next move is successfully executed match is forfeited.
@Da-Colon Da-Colon added the enhancement New feature or request label Jan 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant