Version 4 of Hamurabi.tcl Text Adventure Game and TCL Demo Example

Updated 2020-10-08 20:15:50 by gold

Hamurabi.tcl Text Adventure Game and TCL Demo Example

This page is under development. Constructive comments are welcome, but please load any constructive comments in the comments section at the bottom of the page. Please include your wiki MONIKER and date in your comment with the same courtesy that I will give you. Aside from your courtesy, your wiki MONIKER and date as a signature and minimal good faith of any internet post are the rules of this TCL-WIKI. Its very hard to reply reasonably without some background of the correspondent on his WIKI bio page. Thanks, gold 08Jul2020


Preface


gold Here are some TCL calculations for.


Introduction

The


From the references, .






Procedures


In the




Pseudocode Section

   
            # end of file, pseudocode:

 

Testcases Section

In planning any software, it is advisable to gather a number of testcases to check the results of the program. The math for the testcases can be checked by pasting statements in the TCL console. Aside from the TCL calculator display, when one presses the report button on the calculator, one will have console show access to the capacity functions (subroutines).


Testcase 1 , !st right sided trapezoid


The


Testcase 2 , d



Testcase 3 , B


The following scenari


Testcase 4 ,

Testcase 5 ,


The following scenario was used for the _th testcase.


Testcase 6 , e



The following scenario was used for the 6th testcase. There is Astrology software available to derive some testcases from modern numbers. It turns out that the year 2020 offers an interesting retrograde of Jupiter in astrology.



Screenshots Section


Figure 1. Flowchart for Hamurabi Text Adventure

Hamurabi Text Adventure screenshot 2


References:

  • A Geometric

Appendix Code

appendix TCL programs and scripts


 
        # gold on TCL Club, 8Jul2020
        # This posting, screenshots, and TCL source code is
        # copyrighted under the TCL/TK 8.6 license terms.
        # Editorial rights retained under the TCL/TK license terms
        # and will be defended as necessary in court.
        # end of file

Pushbutton Operation

For the push buttons, the recommended procedure is push testcase and fill frame, change first three entries etc, push solve, and then push report. Report allows copy and paste from console.

For testcases in a computer session, the eTCL calculator increments a new testcase number internally, eg. TC(1), TC(2) , TC(3) , TC(N). The testcase number is internal to the calculator and will not be printed until the report button is pushed for the current result numbers. The current result numbers will be cleared on the next solve button. The command { calculate; reportx } or { calculate ; reportx; clearx } can be added or changed to report automatically. Another wrinkle would be to print out the current text, delimiters, and numbers in a TCL wiki style table as

  puts " %| testcase $testcase_number | value| units |comment |%"
  puts " &| volume| $volume| cubic meters |based on length $side1 and width $side2   |&"  

Console program under test.


gold This page is copyrighted under the TCL/TK license terms, this license .

Hidden Comments Section

Please place any comments here, Thanks.