May 28, 2021
Higher or Lower? – Captivate Game and Puzzle Series
Comments
(9)
May 28, 2021
Higher or Lower? – Captivate Game and Puzzle Series
I am currently a provider of technical training and support in the electronic manufacturing industry. My prior training and work experience as a teacher, network administrator, web design, and instructional design make me well prepared to design it, develop it, and deliver it. I am a father of five, a US Army veteran, and I enjoy playing the guitar as well as performing in local community theater. 
Legend 99 posts
Followers: 155 people
(9)

This is a card game where you reveal a card and then must predict whether the next card will be higher or lower than the first one. You will begin with $10,000 and you will need to wager on your confidence in your prediction. With 52 cards – you will have 26 matches to try to earn as much money as possible.

Think you’re the big winner? Well, talk is cheap – post your screenshots!

Preview Project

<—— Game and Puzzle Series

9 Comments
2022-11-09 22:27:19
2022-11-09 22:27:19

How fun!  Thanks.  I’d add to the Rules that a tie is not higher or lower so a loss either way and also mention that A’s are high, not low.

Thanks for sharing.

Terri

Like
(1)
>
territeahannon
's comment
2022-11-11 21:30:07
2022-11-11 21:30:07
>
territeahannon
's comment

Thanks for the feedback, Terri.

The ideas regarding Aces and ties are already mentioned in the rules.

Like
2021-05-29 01:18:56
2021-05-29 01:18:56

I have a test project here for anyone to test that formatting works for their region.

http://www.thirdleveltraining.com/captivate/hiLowGame/index.html

I have tried to accommodate for (comma), (decimal), and (narrow non-breaking space)

Like
(1)
(1)
>
Greg Stager
's comment
2021-05-29 07:47:29
2021-05-29 07:47:29
>
Greg Stager
's comment

Works perfectly for French in this new version !… (even if I am currently in England…)

I had 3 attachments… 1 easy bet… 1 unlucky bet… And my final result !…

PS : Maybe you could add the number of cards still to play… And in the rules, you may precise that if the cards are even, it’s a lost bet !…

Anyway, it’s a big win for you to manage to make it works perfectly !…

😉

Edit : I can attach only one file !!!???… It’s my final result so… And you owe me $ 33,248,000 (in the american format !…)

Attachment

Like
2021-05-28 10:48:36
2021-05-28 10:48:36

Thanks for sharing that.

I believe this to be due to the way numbers and money are typically formatted on your computer.

In the US, we use commas and if I am not mistaken, you likely use periods.

I wanted the dollar amounts to be nicely formatted so I found a way to strip the comma and revert it from string to number, change the value, and then convert back to the nicely formatted string.  It works great on my PC/iPad but my guess is that when it encounters the different formatting rules of your PC, it breaks – something I clearly wasn’t capable of testing easily.

I will see what I can figure out and post an update.

Like
(3)
>
Greg Stager
's comment
2021-05-28 11:04:42
2021-05-28 11:04:42
>
Greg Stager
's comment

I couldn’t think of this issue !!!…

But you must be right !…

If it could help :

When I open the game, my bet is : $ 1,000 (US way)

If I want to add 1000, it becomes : $ 2 000 (European way !!!???…)

And if I click once again to add 1000 (or other values) :  $ NaN

I hope you’ll find an easy way to solve this !… I want to play !!!…

Like
>
Ludovic Mercier
's comment
2021-05-28 11:43:11
2021-05-28 11:43:11
>
Ludovic Mercier
's comment

I had actually tried to consider this when I was still working it out.

I am using a function to specifically strip the comma and leave behind a number – so a number value can be added such as 1000

Then I use .toLocaleString(undefined) to allow the number to be formatted based on your settings. That is why you see it as European format. (Good – that part works)

Problem is when you change it a second time – there is no comma to strip out and it breaks. I was excited to have that part work on my machine and did not consider it might break elsewhere.

So I need to figure out the first part.

Does your format only have a space?

Like
>
Greg Stager
's comment
2021-05-28 12:02:21
2021-05-28 12:02:21
>
Greg Stager
's comment

Yep !…

One space (instead of the comma) !…

And it works well for french (european) numbers : if I add 10M, I obtain 10 001 000 which is fine for me !…

Like
2021-05-28 09:25:43
2021-05-28 09:25:43

Hello Greg !…

I’ve tested it as you can imagine !… And liked it of course !…

But many times I got a problem with the bet value ???…

In the file attached, for example, I try to bet 5 000 $ without success ???…

No doubt you’ll find a solution and correct the project !…

😉

Edit : Got the same problem with the money I have ($NaN)… when I won !…

Attachment

Like
Add Comment