I used to design and code embedded systems for monitoring stuff many years ago. Each one of them had a pontoon game built in, if you could find it. Whenever I'm learning a new language I always code a pontoon game as an exercise. Here's the original pontoon code from 1992ish (in Forth-83):
decimal
variable yt variable mt variable rnd
: rand ( x -- y ) rnd @ 31421 * 6927 + dup rnd ! um* swap drop ;
: my-go ( -- )
begin 10 rand 1+ mt +!
." My score:" mt @ dup . cr 21 >
if ." I've bust, you win" 1
else mt @ yt @ >=
if ." I win" 1
else 0
then
then
until ;
: Pont ( -- )
cr ." **Phil's Pontoon**" cr
begin 0 yt ! 0 mt !
begin 10 rand 1+ yt +!
." Your score :" yt @ dup . 22 <
if ." Twist? (y/n)" cr key 89 <> dup
if my-go
then
else CR ." You bust, I win" 14 yt ! 1
then
until
cr ." Again ?" cr key 89 <>
until ;
Ah, those were the days, no application server MVC, .net or event handling froth, it was all straight to the hardware (sighs...).
I also wrote a Microsoft Access VBA Blitz game as an Easter egg in a maintenance scheduling system for the baggage handling equipment at Chep Lap Kok airport in Hong Kong. The graphics were a bit limited...
D-T