diff options
author | William Carroll <wpcarro@gmail.com> | 2020-08-12T11·03+0100 |
---|---|---|
committer | William Carroll <wpcarro@gmail.com> | 2020-08-12T11·03+0100 |
commit | bba3f16c43d9cad6ec92cbdfbfe69703701319bc (patch) | |
tree | df1a9be753c67ae46763bc57b95ab838100a9cd6 /scratch/brilliant/README.md | |
parent | f11b91c985f95b585820200d0bca5b043fb9f887 (diff) |
Prefer snake-shift instead of a row-by-row shift
Per the assignment's instructions, the `Shift n` operation should treat the *entire keyboard* like a cycle and shift that. I was erroneously treating *each row* like a cycle and shifting those one-by-one. This change fixes that. In addition, it also: - Updates README.md with expected inputs and outputs - Updates test suite - Adds `split` dependency to {default,shell}.nix
Diffstat (limited to 'scratch/brilliant/README.md')
-rw-r--r-- | scratch/brilliant/README.md | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/scratch/brilliant/README.md b/scratch/brilliant/README.md index a9019a0f4fc4..60d7de4e25ae 100644 --- a/scratch/brilliant/README.md +++ b/scratch/brilliant/README.md @@ -57,11 +57,11 @@ Now a working example: $ ./result/transform-keyboard --transforms=HHVS12VHVHS3 --passage='Hello,Brilliant.' Typing: "Hello,Brilliant." On this keyboard: -[N][M][,][.][/][Z][X][C][V][B] -[H][J][K][L][;][A][S][D][F][G] -[Y][U][I][O][P][Q][W][E][R][T] -[6][7][8][9][0][1][2][3][4][5] -Result: QKRRF30LDRRDY1;4 +[H][J][K][L][;][Q][W][E][R][T] +[Y][U][I][O][P][1][2][3][4][5] +[6][7][8][9][0][Z][X][C][V][B] +[N][M][,][.][/][A][S][D][F][G] +Result: ZIVV4D/O3VV36APF ``` ...and an example with an erroneous input (i.e. `!`): @@ -70,10 +70,10 @@ Result: QKRRF30LDRRDY1;4 $ ./result/transform-keyboard --transforms=HHVS12VHVHS3 --passage='Hello,Brilliant!' Typing: "Hello,Brilliant!" On this keyboard: -[N][M][,][.][/][Z][X][C][V][B] -[H][J][K][L][;][A][S][D][F][G] -[Y][U][I][O][P][Q][W][E][R][T] -[6][7][8][9][0][1][2][3][4][5] +[H][J][K][L][;][Q][W][E][R][T] +[Y][U][I][O][P][1][2][3][4][5] +[6][7][8][9][0][Z][X][C][V][B] +[N][M][,][.][/][A][S][D][F][G] Looks like at least one of the characters in your input passage doesn't fit on our QWERTY keyboard: [1][2][3][4][5][6][7][8][9][0] [Q][W][E][R][T][Y][U][I][O][P] |