planetarium / planetarium/ArenaService

Add opponent's groupId in BattleToken

Open
#109 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
1
Forks
3
Avg merge
29m
Merged PRs (30d)
1

Description

https://github.com/planetarium/ArenaService/blob/2a292159b1636099dfca1fdfab45b57ad09206f0/ArenaService/Repositories/BattleRepository.cs#L64
With availableOpponentId in BattleToken, I can determine how many score a player has gained or lost when winning or losing through TxId.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in Repositories/BattleRepository.cs at line 64 and trace how availableOpponentId is added to BattleToken. Confirm where the opponent's groupId is available and how the token is consumed. Done means BattleToken includes the opponent's groupId so a player can determine score gained or lost through the transaction ID.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
backend
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.