A blog is that is all about mathematics and calculators, two of my passions in life.

Saturday, June 16, 2018

Casio fx-CG 50 and HP Prime: The Price is Right Wheel Simulation

Casio fx-CG 50 and HP
Prime: The Price is Right Wheel Simulation

Introduction

On the very famous game show, The Price Is Right, currently
enjoying its fifth decade in its current run on television (1972-present), the
hour long game show is divided into three segments.The first two segments are played this way:

* An item up for bid is presented to four contestants who
directly called from the audience.Whoever gets closest to the actual retail price without going over wins
the prize and plays a pricing game. This cycle occurs three times.

* The three winners play in a Showcase Showdown, where they
spin a wheel.The goal is obtain a score
closest to one dollar without going over.The winner advances to the final Showcase round.

The third segment is the Showcase round played by the two
winners of the Showcase Showdown, where prize packages worth thousands of
dollars are at stake.

This blog will present a simulation of the Showcase Showdown.Like the game show, the amounts are shown in
cents, where 100 represents one dollar.

Single Spin Simulation:Casio fx-CG 50

This program simulates a single spin.The spin starts on the dollar (100)
space.The space that the pointer is in
red with arrows pointed at it. You can
use the program on monochrome screens if you wish, just not type the color
commands (Black, Red).

Casio fx-CG50 Program
TRIPWHL1

“EWS 2018-06-12”

{100,15,80,35,60,20,40,

75,55,95,50,85,30,65,10,

45,70,25,90,5}→List
1

1 → P

For 1 → K To
RanInt#(20, 60)

ClrText

MOD(P, 20) → P

MOD(P+18, 20) → A

MOD(P+19, 20) → B

MOD(P, 20) → C

MOD(P+1, 20) → D

MOD(P+2 ,20) → E

A = 0 ⇒ 20 → A

B = 0 ⇒ 20 → B

C = 0 ⇒ 20 → C

D = 0 ⇒ 20 → D

E = 0 ⇒ 20 → E

Black Locate 5, 2,
List 1[E]

Black Locate 5, 3,
List 1[D]

Red Locate 5, 4,
List 1[C]

Red Locate 10, 4 “≪”

Black Locate 5, 5,
List 1[B]

Black Locate 5, 6,
List 1[A]

MOD(P+1, 20) → P

.1 + .4 K → T

For .1 → I To T Step
.1

Next

Next

Note:The lines
.1+.4K and the second For loop that follows it is to simulate the wheel that
slows down as it spins.

Now, if you want a complete simulation, check out the HP
Prime program TPIRWHEEL.

A Showcase Showdown
Round Simulation:HP Prime Program
TPIRWHEEL

The program offers two modes:

2 Player Spinoff:This is a one spin playoff between two players.

3 Player Normal:This
is a normal game between three players.Each player may have up to two spins.If the score exceeds 1 dollar, the player is out, and given a final
score of 0.

When entering the names, you do not need to worry about
entering the quotes.

Bonus Spins

Should a player get 1 dollar in one spin or their score from
two spins add up to 1 dollar, then the player gets a bonus spin and wins
$1,000.The bonus spin always starts
from the 5 cent position.Unlike the
game show, all bonus spins are taken immediately.Landing on the green 5 cents and 15 cents
spaces wins $10,000, while landing on the red dollar space on the bonus spins
wins $25,000.The amount on the bonus
spin does not affect the player’s final score.