Skip to content

Instantly share code, notes, and snippets.

@michaeldv
Last active August 29, 2015 14:18
Show Gist options
  • Select an option

  • Save michaeldv/9bfca1465e0f4c417ee0 to your computer and use it in GitHub Desktop.

Select an option

Save michaeldv/9bfca1465e0f4c417ee0 to your computer and use it in GitHub Desktop.

Revisions

  1. Michael Dvorkin revised this gist Apr 5, 2015. 3 changed files with 17 additions and 2 deletions.
    2 changes: 1 addition & 1 deletion coordinate.ante
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    # Ante script by Richard Notley
    # Print N51°17.252W0°36.952
    # Print N51°17.252W0°36.952\n
    #
    9♥ 3♥ 5♠ 8♥ # ♥ = 9 * 3 - 5 * 8 = 176 [°]
    5♣ 4♠ # ♣ = 5 - 4 = 1
    2 changes: 1 addition & 1 deletion coordinate2.ante
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    # Ante script by Richard Notley
    # Print N51°17.252W0°36.952
    # Print N51°17.252W0°36.952\n
    #
    4♣ 7♦ 3♠ 9♥ 6♦ # ♣ = 4 + 7 - 3 * 9 + 6 = 78 [N]
    J♣ # Output: N
    15 changes: 15 additions & 0 deletions coordinate3.ante
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    # 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♣
  2. Michael Dvorkin revised this gist Apr 5, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion coordinate2.ante
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    # Ante script by Richard Notley
    # Print N51°17.252W0°36.952
    #
    4♣ 7♦ 3♠ 9♥ 6♦ # ♣ = 4 + 7 - 3 * 9 + 6 = 78 [N]
    4♣ 7♦ 3♠ 9♥ 6♦ # ♣ = 4 + 7 - 3 * 9 + 6 = 78 [N]
    J♣ # Output: N

    8♣ 9♦ 3♥ # ♣ = 8 + 9 * 3 = 51
  3. Michael Dvorkin revised this gist Apr 5, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion coordinate2.ante
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    # Ante script by Richard Notley
    # Print N51°17.252W0°36.952
    #
    4♣ 7♦ 3♠ 9♥ 6♦ # ♣ = 4 + 7 - 3 * 9 + 6 = 78 [N]
    4♣ 7♦ 3♠ 9♥ 6♦ # ♣ = 4 + 7 - 3 * 9 + 6 = 78 [N]
    J♣ # Output: N

    8♣ 9♦ 3♥ # ♣ = 8 + 9 * 3 = 51
  4. Michael Dvorkin revised this gist Apr 5, 2015. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions coordinate2.ante
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,8 @@
    # Ante script by Richard Notley
    # Print N51°17.252W0°36.952
    #
    4♣ 7♦ 3♠ 9♥ 6♦ # ♣ = 4 + 7 - 3 * 9 + 6 = 78 [N]
    J♣ # Output: 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
  5. Michael Dvorkin revised this gist Apr 5, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion coordinate2.ante
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@
    # Print N51°17.252W0°36.952
    #
    4♣ 7♦ 3♠ 9♥ 6♦ # ♣ = 4 + 7 - 3 * 9 + 6 = 78 [N]
    J♣ # Output: N
    J♣ # Output: N

    8♣ 9♦ 3♥ # ♣ = 8 + 9 * 3 = 51
    10♣ # Output: 51
  6. Michael Dvorkin revised this gist Apr 5, 2015. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions coordinate2.ante
    Original file line number Diff line number Diff line change
    @@ -37,5 +37,5 @@ J♦ # Output: .
    A♠ 2♠ 7♥ 4♥ # ♠ = 36 - 2 * 7 * 4 = 952
    10♠ # Output: 952

    2♣ 8♦ J♣ # ♣ = 2 + 8 (newline)
    #J♣ # Output: \n
    2♣ 8♦ # ♣ = 2 + 8 (newline)
    J♣ # Output: \n
  7. Michael Dvorkin created this gist Apr 5, 2015.
    42 changes: 42 additions & 0 deletions coordinate.ante
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,42 @@
    # Ante script by Richard Notley
    # Print N51°17.252W0°36.952
    #
    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
    41 changes: 41 additions & 0 deletions coordinate2.ante
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,41 @@
    # Ante script by Richard Notley
    # Print N51°17.252W0°36.952
    #
    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♦ J♣ # ♣ = 2 + 8 (newline)
    #J♣ # Output: \n