ShareShortcuts

Gamble Game

A fun little gambling game!

th3c4tg4m3r
Fork “Gamble Game”

Har du bygget noget nyt oven på denne genvej? Del den som en fork: den bliver din egen genvej, som du styrer, og begge sider linker til hinanden, så th3c4tg4m3r får kredit.

  1. 1Hent genvejen og ret den i Genveje-appen. Giv den sit eget navn.
  2. 2Del den fra Genveje-appen og kopiér iCloud-linket.
  3. 3Kom tilbage hertil, indsæt linket og beskriv, hvad der er anderledes, fx “Tilføjet et trin, der bruger Apple Intelligence til at gøre teksten mere personlig.”
Downloads
7K
Gemt
1
Handlinger
90
Kategori
Sjov
Version
1.1
Sprog
EN

A fun little gambling game!

Nyheder

Version 1.1

made auto update work ITS MY OWN SCRIPT FOR IT

Versionshistorik
1.1 16. mar. 2026

made auto update work ITS MY OWN SCRIPT FOR IT

1.0 16. mar. 2026

First release

Hvad den gør

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

Vis som kode
Beta

Alle genvejens handlinger skrevet ud i Cherri, et programmeringssprog til genveje. Perfekt til at lære, hvordan den virker.

#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
*/
Åbn i Cherri Playground Dekompileret med cherri 2.3.0 (GPL-2.0). Kan kræve små rettelser, før den kan kompileres.

Bedømmelser og anmeldelser

Skriv en anmeldelse
–
ud af 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Ingen anmeldelser endnu. Vær den første!

Annonce

Du vil måske også kunne lide

Se alle
Annonce