Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce more descriptive Cell type and board serialization #40

Merged
merged 1 commit into from
Feb 8, 2024

Conversation

teogor
Copy link
Owner

@teogor teogor commented Feb 8, 2024

Enhance Gameplay Data Management with Board Serialization

This pull request introduces two key improvements:

1. Board Serialization with BoardSerialization.kt:

  • Provides functions for efficient encoding and decoding of game boards using base-36 representation.
  • Improves data storage and exchange by efficiently representing complex grid structures.
  • Offers encodeAsString and decodeAsBoard functions for serialization and deserialization.

2. Refactoring to Clarity:

  • Replaces the *.types.Token type alias with a dedicated *.utils.Token type for better readability and understanding.
  • More accurately reflects the nature of the values being represented.

Benefits:

  • Enhanced data management and efficiency for game boards.
  • Clearer code representation and maintainability.
  • Potential for future features leveraging efficient encoding.

@teogor teogor added @priority-medium @feature New feature or request labels Feb 8, 2024
@teogor teogor added this to the 1.0.0-alpha04 milestone Feb 8, 2024
@teogor teogor self-assigned this Feb 8, 2024
@teogor teogor merged commit 15884e5 into main Feb 8, 2024
4 checks passed
@zeobot zeobot bot deleted the refactor/board-type-and-serialization branch February 8, 2024 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@feature New feature or request @priority-medium
Projects
Development

Successfully merging this pull request may close these issues.

None yet

1 participant