Skip to content

Conversation

@scarletkc
Copy link

Summary

  • interpolate the original random duel request type so tag mode rooms fall back to 4-player capacity calculations
  • guard lookups in ROOM_find_or_create_random to skip rooms without random duel metadata
  • default the capacity helper to the chosen duel type when rooms haven't been fully initialized yet

Testing

  • npx coffee -c ygopro-server.coffee
  • npx tsc --noEmit

Improves random room selection by introducing helper functions for max player calculation and room capacity. Enhances type matching and room filtering logic for better maintainability and accuracy.
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