Creative Coding for Surpac - Blackjack & Yahtzee

 

 

Surpac User Conference, November 1998 in Vancouver, BC.  My memory was that Crane Harvey didn't go out to dinner with us that evening.  He claimed he was getting his presentation together for the next day and hadn't put anything together yet. But according to the comments in the play.cmd file, he built this version of blackjack while working for me (apparently I paid for this??? so I get the rights for it???) in Nevada that fall. Either way, Crane presented this script at the User Conference to illustrate the power of scripting in Surpac. Even in the pre-Tcl days, the CMD format was still a powerful tool.

At the time, I thought I was a power-user but Crane proved over and over again that I had so much more to learn. Blackjack made me want to try my hand at it (no pun intended) and out of that inspiration, Yahtzee was born.

@AC 's recent post on the Maze Generator and comments by @RS made me search through my old archives to dig out the CMD scripts to see if they work. And sure enough, they hold up. Some of the coloring and formatting may be a little wonky but for the most part, they work exactly as intended. As Ash pointed out, backwards compatibility to allow scripts that are 27 years old to continue to work is commendable!  

I've attached the zip files with each game for anyone interested.  In 2000, I thought about updating Yahtzee to have animated dice and making it more whiz bang with the introduction of Tcl/Scl but I could never get the SclDraw functions to work the way I wanted. Some day!  Just run the PLAY.CMD script for Blackjack and YAHTZEE.CMD script for Yahtzee.

 

TclScl