Why is that needed though?
It doesn’t actually change anything. If we only support a-z and A-Z, or maybe add a capslock keycode to save space, we can get 8 letters.
so
abcdefghijklmnopqrstuvwxyz, CAPSON, CAPSOFF, NEXTLETTERSHIFT, ,.?, 1234567890
42 chars
log_43(10^14) = 8.6 characters
2 Likes
We’re trying to find the maximum info we can cram into a property.
Oh wait! I thought about the keycode, but I thought it wouldn’t do anything! I was thinking about base 2!
Adding shift as a keycode instead of using each character is a game changer
So we still have this many numbers left to do something. Maybe doubles as a regular number property?
9.0317348e+13
So 0 = Yes and 1 = No? Wait we’ll have to encode that in its own digit for each letter.
mysz
September 16, 2023, 9:24pm
70
Oh, like the affine cipher where each letter is represented as a number modulo n?
I have no idea what youre talking about, but basically a number = a character
so the keycode of a
is 1
and the keycode of ?
is 42
replied to wrong person whoops
Yeah, that’s the entire idea of it.
So each letter either has a caps, or a not cap, so we will need a keycode for each and every character.
mysz
September 16, 2023, 9:26pm
74
So you want to cram as many letters as possible into an encoded string?
mysz
September 16, 2023, 9:27pm
76
What is the current maximum amount of letters in your string? And why can’t you put any more in the string?
Well, here are some message examples:
YES NO MAYBE SO
CAPSLOCKyes no maybe soCAPSLOCKOFF
Yes No Maybe So
Shiftyes Shiftno Shiftmaybe Shiftso
2 Likes
mysz
September 16, 2023, 9:27pm
78
And you’re also trying to make a shift key?
Ok. That makes more sense.
Well the shift key saves space and lets us keep 8 characters per property