Tcl/Tk games

Tcl/Tk games is a guide to the many games that have been written for Tcl or Tk.

See also

By genre

Abstract Strategy

Bridg-it or Gale
game with computer opponent.
CrystalBattle
with computer player
Dots and Boxes
Droid Wars
iConnect4
Connect Four
Mastermind
MasterMind 2
Salesman , by Douglas Rohde
Both games involve a set of random points. When the game begins, you will see two identical boards, left and right. You will alternate taking moves, first on the left board and then on the right board. Your opponent will be playing first on the right board and then on the left board. If a board has a light background, it is your turn to make a move on that board. A move simply involves selecting a purple point. As you select points, you will be creating lines, as explained below. Your lines are red. Your opponent's lines are blue. Your score is the total length of the lines that you create. The goal is to avoid forming long lines. Therefore, the player with the lowest score wins.
TkAlign4, by RS
Connect Four
TkAtaxx
TkOverload
TkReverse
Simple game where you reverse an array of numbers until they are in order

Wordle: game of Mastermind to find a hidden word of five letters

Arcade

another Asteroids
fairly accurate remake of the Atari arcade game classic
Collapse
PingPong
Sailplane Flying Game
Space Invaders
tclapps
contains at least 4 games (breakout, frogger, gameset, hexplode)
TSpace - Space Invaders Game
Tux Racer (Tcl, OpenGL)
Tk_Bugz
Kind of like the arcade classic "Galaxian". Packaged as a Starkit.
TkPong
a nearly 100 lines pong
TkPool
in need of finishing...

Board

Alphabet Wheel
A little checker game
Chess
Chess in Tcl
board like Checkers, pieces left as exercise ;-)
A little Go board
Mancala
Nine Men Morris
TkPente
two-player version of Pente
A little Pachisi game
Pachisi (Mensch aerger dich nicht)
A little Yahtzee game

Cards

Freecell
Montana Solitaire
Once In A Lifetime
otherwise known as 'Rainbow'
Spider Solitaire
TkSol

Children's

HiLo
HiLo2
HiLo-international
Number guessing
Dots and Boxes
The Gallows game
Word guessing
TkHangman
Magic Cards
guess the number in your head using binary elimination
A simple memory game
A little Tic Tac Toe game
One-line Hangman
Text-based Hangman game in one line of code

Young children's

A symmetric doodler
Dot to Dots
interactive dot-to-dot games for the young (or immature ;-)
Horseracing in Tcl
Car racing in Tcl

Educational

Babbleback machine

Engineering

Mathematics

a balance toy
Learn units of measurment with a balance.
a triangle toy
Corners and sides are named, and the length of each side and angle at each corner are displayed.
Triangle Madness
Explore the wonderous properties of a triangle.
Playing BLT
Includes an interactive plotter

Maze

3D Maze
move around and try to solve a 3 dimensional maze
TkMaze
computer players with "lefty/stupid/righty" strategies

MUD

smm++
a mud client

Puzzle

1010!
A block puzzle game somewhat similar to Tetris. Has pleasant flat design-style graphics.
Flow Colors
lay pipes to connect all pairs of colors
The Classic 15 Puzzle
N-puzzle
1K
2048.tcl
A crossword game
Eliminator
Gem Game
match 3 or more gems to make them disappear
Hextris
Minesweeper on Tktable
Polygon Puzzle
Sudoku
updated w/source, 2006-04-14
TkBomb
hexagonal version of bomb finding game
tkJewel
A dropping jewels game in Tcl/Tk ported from xjewel [L1 ]
tkmines
mine, by wdb
A minimalist Minesweeper clone.
TkPipes
the game of connecting pipes. hurry up, or the water will flood you!
tkSokoban
cool graphics / advanced move functions / undo / redo / keyboard or mouse control
Bubbles
Bubbles2
Tilt Mazes
TurnOut (at your own risk)
Vertigo - a little Tk game
Zen Loops
puzzle game after the original by Dr. Arend Hintze.

Programming games

taskforce
program AI to carry out orders -- only the description actually exists, no code
TclRobots
[L2 ] -write Tcl programs to control fighting robots
RoboTournament
not only write Tcl programs, but watch them in Tk GUI interface
MechMaster

Simulation

cellular automata
buggy pinball

Text-Based

A text adventure game engine

Quiz

iknow: a pocket quiz

To Sort

Muse
an addictive little app that lets you draw in music

Tclets

See Obtaining the TCL Plugin for the code necessary to execute the following (which are mostly too large for a reasonable Wiki page)

Bat-and-ball
Frogger
LV: Anyone know what changes are needed to get this program to work? I get a tcl syntax error trying to run it locally. UKo: The downloadable code doesn't contain the image data. The placeholder '...' is not a valid list and so the program gives an error.
3D Maze Explorer
comes in both standalone and client/server versions. Also includes an experimental Tclet version
Space Invaders

Tcl/Tk game related applications around the internet

aaron word game
LV - Bad link 2014-04-24
angbandtk
- Bad link 2014-04-24
annoy
- User+PW req. 2014-04-24
argon v
palm pilot game editor
bowling
budge
CardTable
multi-user internet aware card playing game - supports user defined card games! Written for Windows.
crossfire
utilities for people who play the Spellfire Collectible Card Game
Crossword
find words to solve Crossword puzzles
darwersi
othello like game
dontspace
solitaire card game
groupie
shareware
guess-a-sketch
guru chess
contact Alex Shah at ashah at isis.nuc.ucla.edu for info on this tcl/awk/c++/sh/html interface to the gnu chess engine.
headache
tile game link dead 2004-06-05
hexplode
hextego
statego game LV I was unable to locate this project
higpentataki
action game lv this game doesn't seem to be on this page - Bad link 2014-04-24
Ishido
& others
JergoBlatz!
a mail list server with support for play-by-email games
klondike
konnekt4
This link is dead
konnekt4
- Bad link 2014-04-24
lcross
- Bad link 2014-04-24
mankala
maze exploring
client/server maze game
MazeMan
Merlin
MoxQuizz
supports running quiz/trivia games on IRC
nebula device
game engine using OpenGL for rendering
netplug go game client
netrek monitor
patience
solitaire game with multiple sets of rules, differing card fonts, etc. Available as StartKit on https://www.tcl-lang.org/starkits
Penguzzle
Reversi
Same Game
Tile-matching game
SCID
Chess database program
Sink the Ship
Battleship - human vs computer
Slid'Em
tile sliding puzzle
mud client
jeoparTk tkfeud - whowants
Tcl/Tk conference games
tclwumpus
Tcl-Tac-Tao
Complete Tic-Tac-Toe came with computer player
Tic-Tac-Toe
TickleTux Hangman
timer for chess and other games
tkAtaxx
tkcheckers
tkChess
tkKanji
kanji matching pair game
tkMAME
a Tk front end for the Multiple Arcade Machine Emulator
tksquare magic square generator
TkTetris
tkTris
TkVP video Poker
TkVP video Poker
Tcl/tk xblast launcher
tkxpilots
xpilots game server creator
TkXpInterface (alternate )
Tk interface to Xpilots server
ttraffic rush hour
tux goes fishing
video game
video game
arcade game
wiggles
a quest of tcl-powered dwarfs (c.f. Carsten Orthbands talk at the 2. Tcl Europe in June 2001)
Word Search
finds words for Scrabble and Jumble word games, fast
wt 3D game engine : with Tcl support
Xconq
strategy game engine has a Tk user interface
xibc
front end for the internet backgammon server
zotzBrothers Chess War
andrews-deal
Deal out hands of bridge.

Tcl Games mentioned in the past

edots
Various DKF Games
Various Dyer Games
DotsGame
StopWatch
IceUtils
Maze Exploring
Go
tkconnect
Original Gamer's Client (ogc)
TkDgen
A Sega Genesis video game console emulator
tkdice
An Inverted-Pendulum Balancing Game
http://www.cs.sunysb.edu/%7Ecristian/PlayMoog.html
http://www.cs.tu-berlin.de/%7Ekrischan/patience-english.html
http://www.elf.org/tclplugin/
http://www.geocities.com/SiliconValley/Vista/5567/explode.html
http://www.informatik.uni-bremen.de/%7Ewerres/spotgame.html
http://www.jameswatt.ac.uk/games/rot.htm
http://www.ma.utexas.edu/users/voloch/tcl.html
http://www.man.ac.uk/~zzcgudf/tcl/
http://www.purl.org/net/hobbs/tcl/code/tclet/
http://www.purl.org/net/hobbs/tcl/tclet/
http://www.tcltk.com/Tclets/
http://www.tcltk.com/training/plugin/maxteroids-code.htcl

GAMESMAN : a system developed for solving, playing and analyzing two-person, abstract strategy games (e.g., Tic-Tac-Toe, or Chess). Given the description of a game as input, the system generates a text-based and Tcl/Tk graphical application that will solve it (in the strong sense), and then play it perfectly. Programmers can easily prototype a new game with multiple rule variants, learn the strategy via color-coded moves, and perform extended analysis. Since its inception, more than sixty-eight games have been integrated into the system. Github

jcw 2002-10-02: With so many games available, and lots of them already packaged as starkit in [L3 ]... wouldn't it be an idea to create a game pack and make them available as example, teaser, and show-of-vitality in various contexts? One could think of download sites, packaged as a single-file Windows starpack on [L4 ] for example. Or a more developer-focused style, à la Tk-Widgets and Effective-Tcl, which present both a demo interface and a way to inspect the code. Perhaps throw in "ml" as browser/editor. Games are a low-barrier way to show what Tk is up to (but not in techie style "widget collections"!). Simply adding a note that many of these examples need less than a hundreed lines of programming, that everything is available for inspection, adaptation, and re-use, including a "widely used but unknown power tool called Tcl/Tk", and that the largest corporations... yada, yada, yada. All smaller than a floppy, and runnable without installation...

Am I the only person thinking there is a "teeny bit" (ahem) of untapped potential screaming to be released into the world?

20Jan05 Brian Theado - see Bundle o' Starkits


jag 2002-10-03: I've always thought games would be a great way to show off tcl/tk and possibly present it in a different light. This might be just the thing to break down some of the artificial walls some people seem to have built between themselves and a great little language. This would also give me an excuse to put the finishing touches on several games I developed a while back - a Tk version of the arcade classic "Galaxian", and a pretty cool rendition of "Breakout". I LIKE THIS IDEA!


KBK 2001-10-03: Love it! Jeff, will you volunteer your Sokoban as well? A little Yahtzee game is also small and self-contained, as is Jeff Hobbs' Tetris. And of course, sdarchive has several games already in Starkits.

Did someone say Sokoban? Out of the blue, tksokoban.kit appears in [L5 ] ... :o)


JAG 2002-10-03: Consider it volunteered! Now I've gotta' get to work on those "almost finished" games...


2002-11-08: I've been adding some more Starkits to the Starkit Distribution Archive. While doing this I've created a new category for games, wrapped many of the above games, and added them.

I agree it would great to have a single Starpack of games as a showcase for the power/flexibility/efficiency/practicality of Tcl/Tk.


Anyone know of any Tcl/Tk based multi player online role playing game clients? I'm trying to locate something that doesn't require a compiler to use.

Larry Smith: While A text adventure game engine is presently set up to do traditional single-player gaming, take a close look at the parser. You will see heavy use of the object "me:". The engine itself cares only about objects, multiple players should be a simple matter of building a parser that takes multiple input streams and disambiguates orders by using the appropriate player object. e.g. larry:, bill:, and so on, rather than just "me:".

Well http://freshmeat.net/projects/shadowed/ is an application framework for adventure or role-playing games, which includes an optional Tk GUI. Not really what you were seeking though.

MG 2004-05-01: I wrote Potato MUSH (MUD) Client, a client for connecting to MUD/MOO/etc text-based roleplaying games. I also know of TkMOO-Light, at [L6 ], as well as a few more mentioned on the Interacting with the Internet page.