Flipping Coins

All flavors welcome.
Forum rules
Be kind.
Post Reply
User avatar
richmond62
Posts: 5288
Joined: Sun Sep 12, 2021 11:03 am
Location: Bulgaria
Contact:

Flipping Coins

Post by richmond62 »

As bog-basic as you can get . . .
-
Screenshot 2025-04-11 at 15.21.01.png
Screenshot 2025-04-11 at 15.21.01.png (137.15 KiB) Viewed 933 times
https://richmondmathewson.owlstown.net/
User avatar
richmond62
Posts: 5288
Joined: Sun Sep 12, 2021 11:03 am
Location: Bulgaria
Contact:

Re: Flipping Coins

Post by richmond62 »

I was motivated to do this by this:

https://live-code.net/livecode-tutorial.html

18. A Coin Flip App

And mainly because I felt that author's way of doing things was needlessly clunky (feel free to disagree).

It uses referenced internet images so:

1. It assumes that all people trying this sort of thing out have 24/7 internet access.

2. That URL (http://live-code.net/heads.jpg) will be there in perpetuity.

I also felt that resultant stack left a bit to be desired aesthetically:
-
coinflip.jpg
coinflip.jpg (27.71 KiB) Viewed 890 times
https://richmondmathewson.owlstown.net/
User avatar
richmond62
Posts: 5288
Joined: Sun Sep 12, 2021 11:03 am
Location: Bulgaria
Contact:

Re: Flipping Coins

Post by richmond62 »

Screenshot 2025-04-11 at 19.34.43.png
Screenshot 2025-04-11 at 19.34.43.png (135.09 KiB) Viewed 887 times
-
Improved version.
Attachments
COIN FLIPPER.oxtstack
(269.99 KiB) Downloaded 82 times
https://richmondmathewson.owlstown.net/
User avatar
tperry2x
Posts: 3522
Joined: Tue Dec 21, 2021 9:10 pm
Location: webtalk.tsites.co.uk
Contact:

Re: Flipping Coins

Post by tperry2x »

Here's one where you don't even need to specify the name of your coin images, and don't need multiple if else statements either.

Added a couple more coins and the "flip" button always chooses a different coin image from one that was last shown.
Coin Flipper v2.oxtstack
(509.14 KiB) Downloaded 91 times
Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests