Skip to content

Add immutable GameResult#99

Open
sne11ius wants to merge 6 commits intomainfrom
delay_user_leave_during_showcards
Open

Add immutable GameResult#99
sne11ius wants to merge 6 commits intomainfrom
delay_user_leave_during_showcards

Conversation

@sne11ius
Copy link
Owner

@sne11ius sne11ius commented Jun 8, 2024

No description provided.

@codecov
Copy link

codecov bot commented Jun 8, 2024

Codecov Report

Attention: Patch coverage is 82.75862% with 20 lines in your changes missing coverage. Please review.

Project coverage is 85.75%. Comparing base (c808109) to head (85c48fb).
Report is 1 commits behind head on main.

Files Patch % Lines
client/tui.go 62.50% 8 Missing and 1 partial ⚠️
api/src/main/kotlin/pp/api/RoomsResource.kt 0.00% 7 Missing ⚠️
client/root.go 25.00% 2 Missing and 1 partial ⚠️
api/src/main/kotlin/pp/api/Rooms.kt 90.90% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main      #99      +/-   ##
============================================
- Coverage     86.59%   85.75%   -0.85%     
+ Complexity      124      122       -2     
============================================
  Files            25       26       +1     
  Lines          1492     1558      +66     
  Branches         36       36              
============================================
+ Hits           1292     1336      +44     
- Misses          184      203      +19     
- Partials         16       19       +3     
Flag Coverage Δ
api 88.29% <90.36%> (-0.16%) ⬇️
client 77.83% <63.63%> (-2.89%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@sne11ius sne11ius force-pushed the delay_user_leave_during_showcards branch 2 times, most recently from dd72ef9 to 4d48327 Compare June 10, 2024 16:00
@sne11ius sne11ius force-pushed the delay_user_leave_during_showcards branch from 4d48327 to f59a460 Compare June 11, 2024 06:54
sne11ius added 5 commits June 12, 2024 22:27
Previously, the client just panicked - and by not shutting down the tui
normally, left the console in shambles.
For example, there's nothing to reveal, if the cards are already
revealed.
In the past, if a user left (or joined) while the cards were revealed, the average would
change since it was always computed from the "current" users.

Now, the client will show data from "gameResult" room property which is computed the
exact moment the cards are revealed and will not change even if users join or leave
@sne11ius sne11ius force-pushed the delay_user_leave_during_showcards branch from 0cdba34 to 85c48fb Compare June 12, 2024 22:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant