ShareShortcuts

Rock Paper Scissors

Rock Paper Scissors!

theshortcutguy2
Dupliquer « Rock Paper Scissors »

Tu as créé quelque chose de nouveau à partir de ce raccourci ? Partage-le comme version dérivée : il devient un raccourci à toi, que tu gères, et les deux pages renvoient l’une vers l’autre pour que theshortcutguy2 soit crédité.

  1. 1Obtenez le raccourci et modifiez-le dans l’app Raccourcis. Donnez-lui un nom bien à lui.
  2. 2Partage-le depuis l’app Raccourcis et copie le lien iCloud.
  3. 3Reviens ici, colle le lien et décris ce qui change, par exemple : « Ajout d’une étape qui utilise Apple Intelligence pour personnaliser le texte. »
Créer mon fork
Téléchargements
38K
Enregistré
0
Actions
41
Catégorie
Fun
Version
1.0
Langue
EN

Rock Paper Scissors!

Nouveautés

Version 1.0

First release

Historique des versions
1.0 18 sept. 2022

First release

Ce qu’il fait

41 actions
  1. List
  2. Get Item from List
  3. Ask for Input
    Enter “Rock” “Paper” or “Scissors”
  4. If
  5. If
  6. Show Alert
  7. If
  8. If
  9. Show Alert
  10. If
  11. If
  12. Show Alert
  13. If
  14. If
  15. If
  16. If
  17. Show Alert
  18. If
  19. If
  20. Show Alert
  21. If
  22. If
  23. Show Alert
  24. If
  25. If
  26. If
  27. If
  28. Show Alert
  29. If
  30. If
  31. Show Alert
  32. If
  33. If
  34. Show Alert
  35. If
  36. If
  37. Choose from Menu
    Play Again?
  38. Choose from Menu
    Yes
  39. Run Shortcut
    Rock Paper Scissors
  40. Choose from Menu
    No
  41. Stop This Shortcut

Afficher en tant que code
Bêta

Chaque action de ce raccourci écrite en Cherri, un langage de programmation pour Raccourcis. Idéal pour comprendre son fonctionnement.

#define glyph hand

const List = list("Rock ", "Paper", "Scissors")
const ItemFromList = getRandomItem(List)
const ProvidedInput = prompt("Enter “Rock” “Paper” or “Scissors”", "Text")

if ProvidedInput == "Rock" {
	if ItemFromList == "Rock " {
		confirm("Draw")
	} else {
		if ItemFromList == "Scissors" {
			confirm("You Lose.")
		} else {
			if ItemFromList == "Paper" {
				confirm("You Win!")
			} else {
			}
		}
	}
} else {
	if ProvidedInput == "Paper" {
		if ItemFromList == "Rock" {
			confirm("You Win!")
		} else {
			if ItemFromList == "Paper" {
				confirm("Draw.")
			} else {
				if ItemFromList == "Scissors" {
					confirm("You Lose.")
				} else {
				}
			}
		}
	} else {
		if ProvidedInput == "Scissors" {
			if ItemFromList == "Scissors" {
				confirm("Draw")
			} else {
				if ItemFromList == "Rock" {
					confirm("You Lose.")
				} else {
					if ItemFromList == "Paper" {
						confirm("You Win!")
					} else {
					}
				}
			}
		} else {
		}
	}
}

menu "Play Again?" {
item "Yes":
	runSelf()
item "No":
	stop()
}
Ouvrir dans Cherri Playground Décompilé avec cherri 2.3.0 (GPL-2.0). Quelques corrections peuvent être nécessaires avant la compilation.

Notes et avis

Écrire un avis
–
sur 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Aucun avis pour le moment. Sois le premier à partager ton avis !

Publicité

Plus de theshortcutguy2

Tout afficher

Ça pourrait aussi te plaire

Tout afficher
Publicité