Make a code square with your favorite word
Javascript - action - 15x15
"Definetly not the shortest one, but PEW PEW PEW." - James Bond
ction="action "
ction+="means "
actionac="PEW "
ctionact="PEW "
tionacti="PEW "
ionactio="PEW "
onaction="PEW "
nactiona="PEW "
ction+=actionac
ction+=ctionact
ction+=tionacti
ction+=ionactio
ction+=onaction
ction+=nactiona
alert(""+ction)
Link to the jsfiddle
Output (37 chars):
action means PEW PEW PEW PEW PEW PEW
Befunge 93, n=13
This works by redirecting the string with "v
and >"
. This only works when the side-length and word-length are coprime and when the side-length is greater than 11. Right now, it works for the "word" vwombat
, and therefore for wombat
.
"laip"vwombat
wombat>"usr"v
"am "vwombat>
ombat>"nai"vw
lar"vwombat>"
mbat>"tsu"vwo
d"vwombat>"A
bat>"egg"vwom
-"vwombat>"el
at>"tro"vwomb
"vwombat>"hs
t>"tuC"vwomba
vwombat>:#,_@
Outputs Cute short-legged Australian marsupial
C (word : "finder", N = 16)
main() finder{ f
printf(finder i
"it's defined "r
"as a t"finder d
"hing t"finder e
"hat ca"finder r
"n find other t"
"hings" finder);
finder finder f\
inder finder fi\
nder finder fin\
der finder find\
er finder finde\
r finder finder
finder finder n
return 0;finder}
Compiled with GCC, with the options -Dfinder="" -Df="" -Di="" -Dn="" -Dd="" -De="" -Dr=""
.
It outputs it's defined as a thing that can find other things
(50 characters). I believe it follows all the rules, but feel free to tell me if there is any mistake !