ShareShortcuts

Gamble Game

A fun little gambling game!

th3c4tg4m3r
Bifurcar “Gamble Game”

¿Creaste algo nuevo a partir de este atajo? Compártelo como bifurcación: se convierte en un atajo tuyo, que tú administras, y ambas páginas se enlazan entre sí para que th3c4tg4m3r reciba el crédito.

  1. 1Obtén el atajo y modifícalo en la app Atajos. Ponle un nombre propio.
  2. 2Compártelo desde la app Atajos y copia el enlace de iCloud.
  3. 3Vuelve aquí, pega el enlace y describe qué es diferente, p. ej., “Se añadió un paso que usa Apple Intelligence para personalizar el texto”.
Descargas
7K
Guardado
1
Acciones
90
Categoría
Fun
Versión
1.1
Idioma
EN

A fun little gambling game!

Novedades

Versión 1.1

made auto update work ITS MY OWN SCRIPT FOR IT

Historial de versiones
1.1 16 de mar. de 2026

made auto update work ITS MY OWN SCRIPT FOR IT

1.0 16 de mar. de 2026

First release

Qué hace

90 acciones
  1. Comment
    Gamble Game by TH3C@g4M3r (sub to me on youtube!) Inspired by beat the bank by @robric18
  2. Comment
    Update 1.0 Release!
  3. Comment
    Things to add: 1.) Double or nothing or just expanding the gambling so it’s more than one thing 2.) Stats stuff Give me your ideas in the comments of [website]!
  4. Comment
    Version stuff VVVV
  5. Text
  6. URL
    qwep7.github.io/Gamble-Game/version.html
  7. URL
    shareshortcuts.com/shortcuts/3394-gamble-game.html
  8. Get Contents of URL
    …
  9. If
  10. Choose from Menu
    Your version is out of date!
  11. Choose from Menu
    Update!
  12. Open URLs
  13. Stop This Shortcut
  14. Choose from Menu
    Keep the old version
  15. Comment
    ^^^^ Version stuff
  16. Comment
    Folder making VVVV
  17. Create Folder
  18. Get File
  19. Comment
    ^^^^ Folder making
  20. Comment
    First time check (collapsed) VVVV
  21. If
  22. Text
  23. Save File
  24. Text
  25. Save File
  26. Comment
    ^^^^ First time check
  27. Comment
    Set money to saved file VVVV
  28. File
  29. Set Variable
    Money
  30. Comment
    0 check (collapsed)
  31. If
  32. Text
  33. Set Variable
    Money
  34. Save File
  35. Show Alert
  36. Comment
    ^^^^ Set money to saved file
  37. Comment
    Random number pick VVVV
  38. Random Number
  39. Set Variable
    Number
  40. Comment
    ^^^^ Random number pick
  41. Comment
    Ask for bet VVVV
  42. Ask for Input
    How much to bet? You have …$ (if you bet more than your total it will just be all in)
  43. Comment
    ^^^^ Ask for bet
  44. Comment
    Check if bet is over money (collapsed) VVVV
  45. If
  46. Set Variable
    Bet
  47. If
  48. Set Variable
    Bet
  49. Comment
    ^^^^ Check if bet is over money
  50. Comment
    Pick part (collapsed) VVVV
  51. Choose from Menu
    Do you think the number is over or under 50?
  52. Choose from Menu
    Over
  53. If
  54. Comment
    Correct
  55. Calculate
  56. Set Variable
    Money
  57. Save File
  58. Show Alert
  59. If
  60. Comment
    Incorrect
  61. Calculate
  62. Set Variable
    Money
  63. Save File
  64. Show Alert
  65. Choose from Menu
    Under
  66. Comment
    Correct
  67. If
  68. Calculate
  69. Set Variable
    Money
  70. Save File
  71. Show Alert
  72. If
  73. Comment
    Incorrect
  74. Calculate
  75. Set Variable
    Money
  76. Save File
  77. Show Alert
  78. Comment
    ^^^^ Pick part
  79. Comment
    Money reset (collapsed) VVVV
  80. If
  81. Text
  82. Save File
  83. Show Alert
  84. Comment
    ^^^^ Money reset
  85. Comment
    Play again (collapsed) VVVV
  86. Choose from Menu
    Play again?
  87. Choose from Menu
    Yes!
  88. Run Shortcut
    Gamble Game
  89. Choose from Menu
    No
  90. Comment
    ^^^^ Play again

Ver como código
Beta

Todas las acciones de este atajo escritas en Cherri, un lenguaje de programación para Atajos. Ideal para aprender cómo funciona.

#include 'actions/web'
#define color green
#define glyph appleCash

/*
Gamble Game by TH3C@g4M3r (sub to me on youtube!)

Inspired by beat the bank by @robric18
*/
/*
Update 1.0
   Release!
*/
/*
Things to add:

1.) Double or nothing or just expanding the gambling so it’s more than one thing

2.) Stats stuff

Give me your ideas in the comments of [website]!
*/
/*
Version stuff
VVVV
*/
url("qwep7.github.io/Gamble-Game/version.html")
const URL = url("shareshortcuts.com/shortcuts/3394-gamble-game.html")
const ContentsOfURL = downloadURL()

if ContentsOfURL !=  {
	menu "Your version is out of date!" {
	item "Update!":
		openURL(URL)
		stop()
	item "Keep the old version":
	}
}
/*
^^^^
Version stuff
*/
/*
Folder making
VVVV
*/
const CreatedFolder = createFolder("Gamble Game")
const File = getFile("firstdetect.txt", CreatedFolder, false)
/*
^^^^
Folder making
*/
/*
First time check (collapsed)
VVVV
*/

if !File {
	const Text = "1000"
	saveFile("/money.txt", Text, true)
	const Text1 = "firstdetect.txt"
	saveFilePrompt(Text1)
}
/*
^^^^
First time check
*/
/*
Set money to saved file
VVVV
*/
file()
@Money
// 0 check (collapsed)


if @Money == 0 {
	@Money = "1000"
	saveFile("/money.txt", @Money, true)
	confirm("You rage quit when you hit zero last time. Your money has been reset to 1000.")
}
/*
^^^^
Set money to saved file
*/
/*
Random number pick
VVVV
*/
randomNumber(1, 100)
@Number
/*
^^^^
Random number pick
*/
/*
Ask for bet
VVVV
*/
const AskForInput = prompt("How much to bet? You have {@Money}$ (if you bet more than your total it will just be all in)", "Number")
/*
^^^^
Ask for bet
*/
/*
Check if bet is over money (collapsed)
VVVV
*/

if AskForInput > @Money {
	@Bet = @Money
} else {
	@Bet = AskForInput
}
/*
^^^^
Check if bet is over money
*/
/*
Pick part (collapsed)
VVVV
*/

menu "Do you think the number is over or under 50?" {
item "Over":
	if @Number >= 50 {
		// Correct

		@Money = @Money + @Bet
		saveFile("/money.txt", @Money, true)
		confirm("You win! You now have {@Money}$")
	} else {
		// Incorrect

		@Money = @Money - @Bet
		saveFile("/money.txt", @Money, true)
		confirm("You lose! You now have {@Money}$")
	}
item "Under":
	// Correct

	if @Money <= 50 {
		@Money = @Money + @Bet
		saveFile("/money.txt", @Money, true)
		confirm("You win! You now have {@Money}$")
	} else {
		// Incorrect

		@Money = @Money - @Bet
		saveFile("/money.txt", @Money, true)
		confirm("You lose! You now have {@Money}$")
	}
}
/*
^^^^
Pick part
*/
/*
Money reset (collapsed)
VVVV
*/

if @Money <= 0 {
	const Text2 = "1000"
	saveFile("/money.txt", Text2, true)
	confirm("You lost all your money. It has been reset to 1000$")
}
/*
^^^^
Money reset
*/
/*
Play again (collapsed)
VVVV
*/

menu "Play again?" {
item "Yes!":
	runSelf()
item "No":
}
/*
^^^^
Play again
*/
Abrir en Cherri Playground Descompilado con cherri 2.3.0 (GPL-2.0). Puede que necesite pequeños ajustes antes de compilarse.

Valoraciones y reseñas

Escribe una reseña
–
de 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Aún no hay reseñas. ¡Sé el primero en compartir tu opinión!

Publicidad

También te puede gustar

Ver todo
Publicidad