Skip to main content
added 681 characters in body
Source Link
Vectorized
  • 3.5k
  • 2
  • 16
  • 28

Python 3 - 228

for x in[b"AB:87078@624>049BA6",b"?;<61;=63;56"][id(id)%3-1]:print("and |FREEDOM|T|IGNORANCE|here lie |STRENGTH|.\n|you |sold |we|I | IS |PEACE|SLAVERY|they, |WAR|me|Under the spreading chestnut tree|\n".split("|")[x-48],end="")
for x in[b"AB:87078@624>049BA6",b"?;<61;=63;56"][id(id)%3-1]:print("and |FREEDOM|T|IGNORANCE|here lie |STRENGTH|.\n|you |sold |we|I | IS |PEACE|SLAVERY|they, |WAR|me|Under the spreading chestnut tree|\n".split("|")[x-48],end="")

Slightly ungolfed:

# id(id) returns an even number based on memory address of id
# id(id)%3-1 gives -1, 0 or 1
randomNumber = id(id)%3-1

# Word list
words = "and |FREEDOM|T|IGNORANCE|here lie |STRENGTH|.\n|you |sold |we|I | IS |PEACE|SLAVERY|they, |WAR|me|Under the spreading chestnut tree|\n".split("|")

# Byte Literals for Under the chestnut and WAR IS PEACE
# each byte correspond to the word's index in the word list
byteLiterals = [b"AB:87078@624>049BA6", b"?;<61;=63;56"]
choice = byteLiterals[randomNumber]

for x in choice: 
    print(words[x-48], end="") # Print each word out

Python 3 - 228

for x in[b"AB:87078@624>049BA6",b"?;<61;=63;56"][id(id)%3-1]:print("and |FREEDOM|T|IGNORANCE|here lie |STRENGTH|.\n|you |sold |we|I | IS |PEACE|SLAVERY|they, |WAR|me|Under the spreading chestnut tree|\n".split("|")[x-48],end="")

Python 3 - 228

for x in[b"AB:87078@624>049BA6",b"?;<61;=63;56"][id(id)%3-1]:print("and |FREEDOM|T|IGNORANCE|here lie |STRENGTH|.\n|you |sold |we|I | IS |PEACE|SLAVERY|they, |WAR|me|Under the spreading chestnut tree|\n".split("|")[x-48],end="")

Slightly ungolfed:

# id(id) returns an even number based on memory address of id
# id(id)%3-1 gives -1, 0 or 1
randomNumber = id(id)%3-1

# Word list
words = "and |FREEDOM|T|IGNORANCE|here lie |STRENGTH|.\n|you |sold |we|I | IS |PEACE|SLAVERY|they, |WAR|me|Under the spreading chestnut tree|\n".split("|")

# Byte Literals for Under the chestnut and WAR IS PEACE
# each byte correspond to the word's index in the word list
byteLiterals = [b"AB:87078@624>049BA6", b"?;<61;=63;56"]
choice = byteLiterals[randomNumber]

for x in choice: 
    print(words[x-48], end="") # Print each word out
deleted 4 characters in body
Source Link
Vectorized
  • 3.5k
  • 2
  • 16
  • 28

Python 3 - 232228

for x in[b"BCin[b"AB:87078A6C2>4?0>4ACB6"87078@624>049BA6",b"@;<6C1;=6C3;56"][idb"?;<61;=63;56"][id(id)%3-1]:print("and |FREEDOM|T|IGNORANCE|lie|FREEDOM|T|IGNORANCE|here lie |STRENGTH|.|you\n|you |sold |we|I | IS |PEACE|SLAVERY|here |they|PEACE|SLAVERY|they, |WAR|me|Under the spreading chestnut tree|\n".split("|")[x-48],end="")

Python 3 - 232

for x in[b"BC:87078A6C2>4?0>4ACB6",b"@;<6C1;=6C3;56"][id(id)%3-1]:print("and |FREEDOM|T|IGNORANCE|lie |STRENGTH|.|you |sold |we|I | IS |PEACE|SLAVERY|here |they, |WAR|me|Under the spreading chestnut tree|\n".split("|")[x-48],end="")

Python 3 - 228

for x in[b"AB:87078@624>049BA6",b"?;<61;=63;56"][id(id)%3-1]:print("and |FREEDOM|T|IGNORANCE|here lie |STRENGTH|.\n|you |sold |we|I | IS |PEACE|SLAVERY|they, |WAR|me|Under the spreading chestnut tree|\n".split("|")[x-48],end="")
added 3 characters in body
Source Link
Vectorized
  • 3.5k
  • 2
  • 16
  • 28

Python 233

Python 3 - 232

print"".joinfor x in[b"BC:87078A6C2>4?0>4ACB6",b"@;<6C1;=6C3;56"][id(id)%3-1]:print("and |FREEDOM|T|IGNORANCE|lie |STRENGTH|.|you |sold |we|I | IS |PEACE|SLAVERY|here |they, |WAR|me|Under the spreading chestnut tree|\n".split("|")[int(x,36)]for x in["ija87078h6j2e4f0e4hji6","gbc6j1bd6j3b56"][id(9)%3[x-1]48],end="")

Python 233

print"".join("and |FREEDOM|T|IGNORANCE|lie |STRENGTH|.|you |sold |we|I | IS |PEACE|SLAVERY|here |they, |WAR|me|Under the spreading chestnut tree|\n".split("|")[int(x,36)]for x in["ija87078h6j2e4f0e4hji6","gbc6j1bd6j3b56"][id(9)%3-1])

Python 3 - 232

for x in[b"BC:87078A6C2>4?0>4ACB6",b"@;<6C1;=6C3;56"][id(id)%3-1]:print("and |FREEDOM|T|IGNORANCE|lie |STRENGTH|.|you |sold |we|I | IS |PEACE|SLAVERY|here |they, |WAR|me|Under the spreading chestnut tree|\n".split("|")[x-48],end="")
Source Link
Vectorized
  • 3.5k
  • 2
  • 16
  • 28
Loading