Skip to content

Conversation

@Apricot-S
Copy link
Collaborator

Replaced the verbose tile ID generation logic with a direct and Pythonic loop.
The new implementation eliminates redundant checks and temporary lists while producing the same result:
[index * 4, index * 4 + 1, index * 4 + 2, ...] for each tile count.

This improves readability and maintainability.

@Apricot-S Apricot-S requested a review from Nihisil October 28, 2025 21:20
Copy link
Contributor

@Nihisil Nihisil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 👍 👍

@Nihisil Nihisil merged commit a76d29a into MahjongRepository:master Nov 4, 2025
10 checks passed
@Apricot-S Apricot-S deleted the refactor/tile-convert branch November 4, 2025 09:00
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.

2 participants