As bog-basic as you can get . . .
-
Flipping Coins
Forum rules
Be kind.
Be kind.
- richmond62
- Posts: 5288
- Joined: Sun Sep 12, 2021 11:03 am
- Location: Bulgaria
- Contact:
Flipping Coins
https://richmondmathewson.owlstown.net/
- richmond62
- Posts: 5288
- Joined: Sun Sep 12, 2021 11:03 am
- Location: Bulgaria
- Contact:
Re: Flipping Coins
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:
-
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:
-
https://richmondmathewson.owlstown.net/
- richmond62
- Posts: 5288
- Joined: Sun Sep 12, 2021 11:03 am
- Location: Bulgaria
- Contact:
Re: Flipping Coins
Improved version.
- Attachments
-
- COIN FLIPPER.oxtstack
- (269.99 KiB) Downloaded 82 times
https://richmondmathewson.owlstown.net/
- tperry2x
- Posts: 3522
- Joined: Tue Dec 21, 2021 9:10 pm
- Location: webtalk.tsites.co.uk
- Contact:
Re: Flipping Coins
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.
Added a couple more coins and the "flip" button always chooses a different coin image from one that was last shown.
Who is online
Users browsing this forum: No registered users and 8 guests