Skip to content

Instantly share code, notes, and snippets.

@michaeldv
Last active August 29, 2015 14:18
Show Gist options
  • Save michaeldv/9bfca1465e0f4c417ee0 to your computer and use it in GitHub Desktop.
Save michaeldv/9bfca1465e0f4c417ee0 to your computer and use it in GitHub Desktop.
Ante scripts by Richard
# Ante script by Richard Notley
# Print N51°17.252W0°36.952\n
#
9♥ 3♥ 5♠ 8♥ # ♥ = 9 * 3 - 5 * 8 = 176 [°]
5♣ 4♠ # ♣ = 5 - 4 = 1
3♦ 6♥ # ♦ = 3 * 6 = 18
Q♦ # Label
A♣ 5♦ # ♣ = ♣ + 5 => increment ♣ by 5 (9 iterations from ♣ = 1) => ♣ = 46 [.]
A♦ 2♠ # ♦ = ♦ - 2 => decrement ♦ (counter) by 2
K♦ # Jump to Q♦ if ♦ != 0
8♦ 9♥ 6♦ # ♦ = 8 * 9 + 6 = 78 [N]
J♦ # Output: N
8♦ 9♦ 3♥ # ♦ = 8 + 9 * 3 = 51
10♦ # Output: 51
J♥ # Output: °
8♠ 9♦ # ♠ = 8 + 9 = 17
10♠ # Output: 17
J♣ # Output: .
A♠ 5♥ 3♥ 3♠ # ♠ = 17 * 5 * 3 - 3 = 252
10♠ # Output: 252
A♦ 3♣ 5♥ 2♦ # ♦ = 51 / 3 * 5 + 2 = 87 [W]
J♦ # Output: W
2♦ 2♠ # ♦ = 2 - 2 = 0
10♦ # Output: 0
J♥ # Output: °
6♠ 6♥ # ♠ = 6 * 6 = 36
10♠ # Output: 36
J♣ # Output: .
A♠ 2♠ 7♥ 4♥ # ♠ = 36 - 2 * 7 * 4 = 952
10♠ # Output: 952
2♣ 8♦ # ♣ = 2 + 8 (newline)
J♣ # Output: \n
# Ante script by Richard Notley
# Print N51°17.252W0°36.952\n
#
4♣ 7♦ 3♠ 9♥ 6♦ # ♣ = 4 + 7 - 3 * 9 + 6 = 78 [N]
J♣ # Output: N
8♣ 9♦ 3♥ # ♣ = 8 + 9 * 3 = 51
10♣ # Output: 51
6♥ 4♥ 7♥ 8♦ # ♥ = 6 * 4 * 7 + 8 = 176 [°]
J♥ # Output: °
8♠ 9♦ # ♠ = 8 + 9 = 17
10♠ # Output: 17
6♣ 3♣ # ♣ = 6 / 3 = 2 (counter)
Q♣ # Label
A♦ 8♦ 6♦ 9♦ # ♦ = ♦ + 8 + 6 + 9 => increment ♦ by 23 (2 iterations from ♦ = 0) => ♦ = 46 [.]
A♣ 5♦ 6♠ # ♣ = ♣ + 5 - 6 => decrement ♣ (counter) by 1
K♣ # Jump to Q♣ if A♣ != 0
J♦ # Output: .
A♠ 5♥ 3♥ 3♠ # ♠ = 17 * 5 * 3 - 3 = 252
10♠ # Output: 252
3♣ 5♥ 6♥ 3♠ # ♣ = 3 * 5 * 6 - 3 = 87 [W]
J♣ # Output: W
5♣ 3♦ 4♣ 2♠ # ♣ = 5 + 3 / 4 - 2 = 0
10♣ # Output: 0
J♥ # Output: °
4♠ 9♥ # ♠ = 4 * 9 = 36
10♠ # Output: 36
J♦ # Output: .
A♠ 2♠ 7♥ 4♥ # ♠ = 36 - 2 * 7 * 4 = 952
10♠ # Output: 952
2♣ 8♦ # ♣ = 2 + 8 (newline)
J♣ # Output: \n
# Ante script by Richard Notley
# Print N51°17.252W0°36.952\n\n\n (compacted version)
#
4♣ 7♦ 3♠ 9♥ 6♦
J♣ 8♣ 9♦ 3♥ 10♣
6♥ 4♥ 7♥ 8♦ J♥
8♠ 9♦ 10♠ 4♣ 2♣
Q♣ A♦ 8♦ 6♦ 9♦
A♣ 5♦ 6♠ K♣ J♦
A♠ 5♥ 3♥ 3♠ 10♠
3♣ 5♥ 6♥ 3♠ J♣
6♣ 4♦ 5♣ 2♠ 10♣
J♥ 4♠ 9♥ 10♠ J♦
A♠ 2♠ 7♥ 4♥ 10♠
2♣ 8♦ J♣ J♣ J♣
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment