ShareShortcuts

Domino Score Keeping Pad

- Calculate and keep your domino scores

arirafiq
Fork “Domino Score Keeping Pad”

Built something new on top of this Shortcut? Share it as a fork: it becomes a Shortcut of your own, which you manage, and both pages link to each other so arirafiq gets credit.

  1. 1Get the Shortcut and change it in the Shortcuts app. Give it a name of its own.
  2. 2Share it from the Shortcuts app and copy the iCloud link.
  3. 3Come back here, paste the link and describe what is different, e.g. “Added a step that uses Apple Intelligence to personalise the text.”
Downloads
44K
Saved
0
Actions
106
Category
Calculations
Version
1.0
Language
EN

Preview

  • Calculate and keep your domino scores.

What's New

Version 1.0

First release

Version History
1.0 Jan 28, 2022

First release

What it does

106 actions
  1. Comment
    Author: Ari R. Abdulla - Calculate and keep your domino scores.
  2. Number
  3. Choose from Menu
    How many players?
  4. Choose from Menu
    2
  5. Ask for Input
    First Team Name?
  6. Ask for Input
    Second Team Name?
  7. Repeat
  8. Number
  9. Number
  10. Choose from Menu
    …: …, …: …
  11. Choose from Menu
    FirstName
  12. Ask for Input
  13. Calculate
  14. Choose from Menu
    SecondName
  15. Ask for Input
  16. Calculate
  17. Choose from Menu
    End Game
  18. If
  19. Show Result
  20. Stop This Shortcut
  21. If
  22. If
  23. Show Result
  24. Stop This Shortcut
  25. If
  26. Show Result
  27. Stop This Shortcut
  28. Choose from Menu
    3
  29. Ask for Input
    First Team Name?
  30. Ask for Input
    Second Team Name?
  31. Ask for Input
    Third Team Name?
  32. Repeat
  33. Number
  34. Number
  35. Number
  36. Choose from Menu
    …: …, …: …, …: …
  37. Choose from Menu
    FirstName
  38. Ask for Input
  39. Calculate
  40. Choose from Menu
    SecondName
  41. Ask for Input
  42. Calculate
  43. Choose from Menu
    ThirdName
  44. Ask for Input
  45. Calculate
  46. Choose from Menu
    End Game
  47. If
  48. If
  49. Show Result
  50. Stop This Shortcut
  51. If
  52. If
  53. Show Result
  54. Stop This Shortcut
  55. If
  56. If
  57. Show Result
  58. Stop This Shortcut
  59. Show Result
  60. Stop This Shortcut
  61. Choose from Menu
    4
  62. Ask for Input
    First Team Name?
  63. Ask for Input
    Second Team Name?
  64. Ask for Input
    Third Team Name?
  65. Ask for Input
    Fourth Team Name?
  66. Repeat
  67. Number
  68. Number
  69. Number
  70. Number
  71. Choose from Menu
    …: …, …: …, …: …, …: …
  72. Choose from Menu
    FirstName
  73. Ask for Input
  74. Calculate
  75. Choose from Menu
    SecondName
  76. Ask for Input
  77. Calculate
  78. Choose from Menu
    ThirdName
  79. Ask for Input
  80. Calculate
  81. Choose from Menu
    FourthName
  82. Ask for Input
  83. Calculate
  84. Choose from Menu
    End Game
  85. If
  86. If
  87. If
  88. Show Result
  89. Stop This Shortcut
  90. If
  91. If
  92. If
  93. Show Result
  94. Stop This Shortcut
  95. If
  96. If
  97. If
  98. Show Result
  99. Stop This Shortcut
  100. If
  101. If
  102. If
  103. Show Result
  104. Stop This Shortcut
  105. Show Result
  106. Stop This Shortcut

View as code
Beta

Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.

#define color blue
#define glyph walletPass

/*
Author: Ari R. Abdulla
- Calculate and keep your domino scores.
*/
const RepeatNumber = 100000

menu "How many players?" {
item "2":
	const FirstName = prompt("First Team Name?")
	const SecondName = prompt("Second Team Name?")
	repeat _ for RepeatNumber {
		const FirstNumber = number(CalculationResult)
		menu "{FirstName}: {FirstNumber}, {SecondName}: {SecondNumber}" {
		item FirstName:
			const ProvidedInput = prompt("", "Number")
			const CalculationResult = ProvidedInput + FirstNumber
		item SecondName:
			const ProvidedInput1 = prompt("", "Number")
			const CalculationResult1 = ProvidedInput1 + SecondNumber
		item :
			if FirstNumber == SecondNumber {
				show("You were equal :)")
				stop()
			} else {
				if FirstNumber > SecondNumber {
					show("Congratulations {FirstName}! You Won :)")
					stop()
				} else {
					show("Congratulations {SecondName}! You Won :)")
					stop()
				}
			}
		}
	}
item "3":
	const FirstName1 = prompt("First Team Name?")
	const SecondName1 = prompt("Second Team Name?")
	const ThirdName = prompt("Third Team Name?")
	repeat _ for RepeatNumber {
		menu "{FirstName1}: {FirstNumber1}, {SecondName1}: {SecondNumber1}, {ThirdName}: {ThirdNumber}" {
		item FirstName1:
			const ProvidedInput2 = prompt("", "Number")
			const CalculationResult2 = ProvidedInput2 + FirstNumber1
		item SecondName1:
			const ProvidedInput3 = prompt("", "Number")
			const CalculationResult3 = ProvidedInput3 + SecondNumber1
		item ThirdName:
			const ProvidedInput4 = prompt("", "Number")
			const CalculationResult4 = ProvidedInput4 + ThirdNumber
		item :
			if FirstNumber1 > SecondNumber1 {
				if FirstNumber1 > ThirdNumber {
					show("Congratulations {FirstName1}! You Won :)")
					stop()
				}
			}
			if SecondNumber1 > FirstNumber1 {
				if SecondNumber1 > ThirdNumber {
					show("Congratulations {SecondName1}! You Won :)")
					stop()
				}
			}
			if ThirdNumber > FirstNumber1 {
				if ThirdNumber > SecondNumber1 {
					show("Congratulations {ThirdName}! You Won :)")
					stop()
				}
			}
			show("You were equal :)")
			stop()
		}
	}
item "4":
	const FirstName2 = prompt("First Team Name?")
	const SecondName2 = prompt("Second Team Name?")
	const ThirdName1 = prompt("Third Team Name?")
	const FourthName = prompt("Fourth Team Name?")
	repeat _ for RepeatNumber {
		menu "{FirstName2}: {FirstNumber2}, {SecondName2}: {SecondNumber2}, {ThirdName1}: {ThirdNumber1}, {FourthName}: {FourthNumber}" {
		item FirstName2:
			const ProvidedInput5 = prompt("", "Number")
			const CalculationResult5 = ProvidedInput5 + FirstNumber2
		item SecondName2:
			const ProvidedInput6 = prompt("", "Number")
			const CalculationResult6 = ProvidedInput6 + SecondNumber2
		item ThirdName1:
			const ProvidedInput7 = prompt("", "Number")
			const CalculationResult7 = ProvidedInput7 + ThirdNumber1
		item FourthName:
			const ProvidedInput8 = prompt("", "Number")
			const CalculationResult8 = ProvidedInput8 + FourthNumber
		item :
			if FirstNumber2 > SecondNumber2 {
				if FirstNumber2 > ThirdNumber1 {
					if FirstNumber2 > FourthNumber {
						show("Congratulations {FirstName2}! You Won :)")
						stop()
					}
				}
			}
			if SecondNumber2 > FirstNumber2 {
				if SecondNumber2 > ThirdNumber1 {
					if SecondNumber2 > FourthNumber {
						show("Congratulations {SecondName2}! You Won :)")
						stop()
					}
				}
			}
			if ThirdNumber1 > FirstNumber2 {
				if ThirdNumber1 > SecondNumber2 {
					if ThirdNumber1 > FourthNumber {
						show("Congratulations {ThirdName1}! You Won :)")
						stop()
					}
				}
			}
			if FourthNumber > FirstNumber2 {
				if FourthNumber > SecondNumber2 {
					if FourthNumber > ThirdNumber1 {
						show("Congratulations {FourthName}! You Won :)")
						stop()
					}
				}
			}
			show("You were equal :)")
			stop()
		}
	}
}
Open in Cherri Playground Decompiled with cherri 2.3.0 (GPL-2.0). May need small fixes before it compiles.

Ratings & Reviews

Write a Review
–
out of 5
★★★★★
★★★★
★★★
★★
★
0 ratings

No reviews yet. Be the first to share what you think!

Advertisement

More by arirafiq

See All

You Might Also Like

See All
Advertisement