Tcl is a scripting language invented by John Ousterhout in 1988. It was originally designed mostly to help the author accomplish simple tasks, but it now used in many server-side web applications and to make simple GUIs. Like most scripting languages, Tcl is designed primarily with usability in mind, so programming in it is meant to be easy and simple. You will often see Tcl mentioned in the context of Tcl/Tk, which refers to the Tk graphical toolkit (for making window boxes and the like).
- The Tcl Developer Xchange is a great resource on all aspects of the language, with documentation, examples, downloads, and more links.
- Tcl comes with a nice tutorial to help you learn the language.
- Wikipedia page
- 99 bottles of beer program
We will use Tcl/Tk version 8.6.
Everything you need is already installed on CS department lab machines.
To install on your virtual machine, follow these steps:
sudo apt install -y tcl tk
- That's it!
How I will run your code
The programs you submit should be in a single file
proj.tcl, for either part of the project.
I will test your code by running the following commands
using the software available in the lab environment or using the instructions
Phase 1 Requirements
For this language, you need to implement modifications A,B,C,E,F,G, and H. See the Phase 1 page for details on what this means.
See the Phase 2 Page for the list of suggested
problems. Of the ones listed, I recommend the following as being most
well-suited for tcl:
- Image Creator
- Game Scheduler
- TODO list
- Vending Machine
- Game with hidden agenda
- Find the missing digits
- Sports Ticker
- Rock, Paper, Scissors
- ??? (you choose!)