Last active
August 29, 2015 14:18
-
-
Save michaeldv/9bfca1465e0f4c417ee0 to your computer and use it in GitHub Desktop.
Revisions
-
Michael Dvorkin revised this gist
Apr 5, 2015 . 3 changed files with 17 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,5 @@ # 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 This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,5 @@ # 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 This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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♣ -
Michael Dvorkin revised this gist
Apr 5, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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] J♣ # Output: N 8♣ 9♦ 3♥ # ♣ = 8 + 9 * 3 = 51 -
Michael Dvorkin revised this gist
Apr 5, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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] J♣ # Output: N 8♣ 9♦ 3♥ # ♣ = 8 + 9 * 3 = 51 -
Michael Dvorkin revised this gist
Apr 5, 2015 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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 8♣ 9♦ 3♥ # ♣ = 8 + 9 * 3 = 51 10♣ # Output: 51 -
Michael Dvorkin revised this gist
Apr 5, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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 8♣ 9♦ 3♥ # ♣ = 8 + 9 * 3 = 51 10♣ # Output: 51 -
Michael Dvorkin revised this gist
Apr 5, 2015 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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♦ # ♣ = 2 + 8 (newline) J♣ # Output: \n -
Michael Dvorkin created this gist
Apr 5, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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 This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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