mirror of
https://github.com/litruv/lit.ruv.wtf.git
synced 2026-07-24 10:46:03 +10:00
feat: add MxjsClient for lightweight Matrix client functionality
- Implemented core methods for user authentication (register, login, logout). - Added room management features (createRoom, joinRoom, leaveRoom, inviteUser). - Included message handling capabilities (sendMessage, editMessage, redactEvent). - Introduced user moderation actions (kickUser, banUser, unbanUser). - Implemented profile management (getProfile, setDisplayName, setAvatarUrl). - Added support for media uploads and fetching messages from room timelines. - Included event handling with emit and on methods for custom event listeners. - Sanitization of HTML content and mention handling in messages.
This commit is contained in:
@@ -253,13 +253,9 @@ class NumberMatchGame {
|
||||
}
|
||||
}
|
||||
|
||||
// Wrap-around horizontal (end of one row to start of next)
|
||||
if (rowEnd === rowStart + 1 && colStart === this.width - 1 && colEnd === 0) {
|
||||
// Adjacent via wrap
|
||||
return true;
|
||||
}
|
||||
if (diff === 1 || diff === this.width) {
|
||||
// Directly adjacent
|
||||
// Wrap-around: scan reading order across row boundaries (right to end of row,
|
||||
// down to next row, left-to-right until reaching the second tile)
|
||||
if (rowStart !== rowEnd && this.isSegmentClear(start, end, 1)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user