Shuffling Letters
This program mixes letters inside words
except for initial and final ones checking language puzzles
Feature of my programs: spinning string
here spinning strings: 5 where goto 5 and 8 where goto 8 and 9 where goto 9
Algorithm: at beginning and at end of string, spaces
i - beginning of found and j - end of found
and except for extreme letters inside word letters are mixed up
Dots change and repeat until end of phrase
a$
= " Russians looks World from Future ": d$
=a$: a
= LEN(a$
): i
=0: j
=1:
PRINT a$
7 j = i+1:
u
= j
-2-i
-1:
PRINT i
, j
, a
q3$
= MID$(d$
, w
+1, r
-w
-1) d$ = q1$+w$+q3$+r$+q5$
Results:
Russians looks World from Future
1 9 34
Rsaunsis looks World from Future
9 15 34
Rsaunsis lkoos World from Future
15 21 34
Rsaunsis lkoos Wrold from Future
21 26 34
Rsaunsis lkoos Wrold from Future
26 33 34
Rsaunsis lkoos Wrold from Ftruue
Russians looks World from Future
Arocdnicg to rsceearch at Ruiassn Uinervtisy it deosnt mttaer in waht oredr ltteers in a wrod
are olny iprmoatnt tihng is taht frist and lsat ltteer are in rghit pcale
Rset can be a toatl mses and you can sitll raed it wouthit pobelrm
Tihs is buseace huamn mnid deos not raed ervey lteter by istlef but wrod as a wlohe
UPDATE 13jun21
open "dashuf.txt" for output as #1: PRINT #1, a$
PRINT #1, d$: