ShareShortcuts

Gamble Game

A fun little gambling game!

th3c4tg4m3r
„Gamble Game“ forken

Hast du auf Basis dieses Kurzbefehls etwas Neues erstellt? Teile ihn als Fork: Er wird zu deinem eigenen Kurzbefehl, den du selbst verwaltest, und beide Seiten verlinken aufeinander, damit th3c4tg4m3r die Anerkennung erhält.

  1. 1Lade den Kurzbefehl und ändere ihn in der Kurzbefehle-App. Gib ihm einen eigenen Namen.
  2. 2Teile ihn in der Kurzbefehle-App und kopiere den iCloud-Link.
  3. 3Komm hierher zurück, füge den Link ein und beschreibe, was sich geändert hat, z. B. „Einen Schritt hinzugefügt, der Apple Intelligence nutzt, um den Text zu personalisieren.“
Downloads
7K
Gesichert
1
Aktionen
90
Kategorie
Fun
Version
1.1
Sprache
EN

A fun little gambling game!

Neue Funktionen

Version 1.1

made auto update work ITS MY OWN SCRIPT FOR IT

Versionsverlauf
1.1 16. Mär 2026

made auto update work ITS MY OWN SCRIPT FOR IT

1.0 16. Mär 2026

First release

Was er macht

90 Aktionen
  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

Als Code ansehen
Beta

Jede Aktion dieses Kurzbefehls als Cherri ausgeschrieben, eine Programmiersprache für Kurzbefehle. Ideal, um zu lernen, wie er funktioniert.

#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
*/
In Cherri Playground öffnen Mit cherri 2.3.0 (GPL-2.0) dekompiliert. Eventuell sind kleine Korrekturen nötig, bevor es kompiliert wird.

Bewertungen und Rezensionen

Rezension schreiben
–
von 5
★★★★★
★★★★
★★★
★★
★
0 ratings

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

Werbung

Das gefällt dir vielleicht auch

Alle anzeigen
Werbung