The Game of Bust

Description

By Eddie Shore, February 2016 (Eddie's Math and Calculator Blog)

This program is the game of Bust. The player builds a total from values chosen randomly from 1 to 10. The goal is to get the total close to 21 without going over.

Instructions:
  1. Press f A to start a new game.
  2. Press f B to draw numbers. The random number is displayed.
  3. Press R/S to display the total.
  4. If the total is over 21, you have busted, and the display flashes. Press g CF 9 , , or ON to stop the flashing.
  5. If the total is not over 21, decide whether to stop. If you want to draw again, repeat instructions 2 and 3.

Program Resources

Labels

Name Description
 A Initialize the Program
 B Draws a Number and Adds it the total
 0 Instruction when the player busts (goes over 21)

Storage Registers

Name Description
 0 The player's total

Flags

Number Description
9 Flashing display flag

Program

Line Display Key Sequence Line Display Key Sequence
000 014 31 R/S
001 42,21,11 f LBL A 015 44,40, 0 STO + 0
002 0 0 016 45 0 RCL 0
003 44 0 STO 0 017 2 2
004 43 32 g RTN 018 1 1
005 42,21,12 f LBL B 019 43,30, 8 g TEST x<y
006 1 1 020 22 0 GTO 0
007 36 ENTER 021 34 x↔y
008 1 1 022 43 32 g RTN
009 0 0 023 42,21, 0 f LBL 0
010 42 36 f RAN # 024 34 x↔y
011 20 × 025 43, 4, 9 g SF 9
012 43 44 g INT 026 43 32 g RTN
013 40 +