Tcl/Tk games

Difference between version 206 and 209 - Previous - Next
!!!!!!
|[Tk Programs%|%previous : Tk Programs]|[Contents%|%up: Contents]|[demo%|%next : Demos]|
!!!!!!

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



** See also **

   * [sprite]

   * [the brick engine]

   * [Commercial game titles that use Tcl for scripting]



** By genre **

*** Abstract Strategy ***

   [Bridg-it or Gale]:   game with computer opponent.

   [http://wfr.tcl.tk/CrystalsBattle%|%CrystalBattle]:   with computer player

   [Dots and Boxes]:   

   [Droid Wars]:   

   [iConnect4]:   Connect Four

   [Mastermind]:   

   [MasterMind 2]:   

   [http://tedlab.mit.edu/~dr/Salesman/%|%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]:   

   [http://wolf-dieter-busch.de/madn.htm%|%Pachisi (Mensch aerger dich nicht)]:   

   [A little Yahtzee game]:   



*** Cards ***

   [Freecell]:   

   [Montana Solitaire]:   

   [Once In A Lifetime]:   otherwise known as 'Rainbow'

   [Spider Solitaire]:   

   [http://freshmeat.net/projects/tksol/%|%TkSol%|%]:   



*** Children's ***

   [HiLo]:   

   [HiLo2]:   

   [HiLo-international]:    Number guessing

   [Dots and Boxes]:   

   [The Gallows game]:      Word guessing

   [http://freshmeat.net/projects/tkhangman/%|%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%|%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]:   

   [http://freshmeat.net/projects/hextk%|%Polygon Puzzle%|%]:   

   [http://www.sckoarn.com/free_dl/sudoku.zip%|%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 [http://www.geocities.com/prabhanjan.rm/]

   [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

   [http://wfr.tcl.tk/726%|%Bubbles%|%]:   

   [http://wfr.tcl.tk/734%|%Bubbles2%|%]:   

   [Tilt Mazes]:   

   [http://wfr.tcl.tk/TurnOut%|%TurnOut (at your own risk)%|%]:   

   [Vertigo - a little Tk game]:   

   [Zen Loops]:   puzzle game after the original by Dr. Arend Hintze.



*** Programming games ***


   [http://www.etoyoc.com/%|%taskforce]:   program AI to carry out orders -- only the description actually exists, no code

   [TclRobots]:    [http://www.nyx.net/~tpoindex/tcl.html#TclRobots] -write Tcl programs to control fighting robots

   [http://robotournament.sf.net/%|%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)

   [http://www.man.ac.uk/~zzcgudf/tcl/breakout.html%|%Bat-and-ball]:   

   [http://www.man.ac.uk/~zzcgudf/tcl/frogger.html%|%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.

   [http://www.man.ac.uk/~zzcgudf/tcl/#games/maze%|%3D Maze Explorer]:   comes in both standalone and client/server versions.  Also includes an ''experimental'' [http://www.man.ac.uk/~zzcgudf/tcl/mazeexplorer.html%|%Tclet version]

   [http://www.treblig.org/daveG/sinvader.html%|%Space Invaders]:   



** Tcl/Tk game related applications around the internet **

   [http://www.hemes.net/Maggie/aaron.html%|%aaron word game]:   [LV]   - Bad link 2014-04-24

   [http://persweb.direct.ca/dbaker/angbandtk.html%|%angbandtk]:   - Bad link 2014-04-24

   [ftp://ftp.procplace.com/pub/tcl/sorted/packages-7.6/games/annoy.tk/annoy.tk.gz%|%annoy]:    - User+PW req. 2014-04-24

   [http://www.harbaum.org/till/palm/argonv/%|%argon v]:   palm pilot game editor 
   [ftp://ftp.procplace.com/pub/tcl/sorted/packages-7.6/games/xbowl-dist-2.0/xbowl-dist-2.0.tar.gz%|%bowling]:   

   [ftp://ftp.procplace.com/pub/tcl/sorted/packages-7.6/games/budge/budge.tar.gz%|%budge]:   

   [CardTable]:   multi-user internet aware card playing game - supports user defined card games!  Written for Windows.

   [http://crossfire.spellfire.net/%|%crossfire]:   utilities for people who play the Spellfire Collectible Card Game

   [http://www.geocities.com/frankbannon/crossword%|%Crossword]:   find words to solve Crossword puzzles

   [http://www-sop.inria.fr/cafe/Olivier.Arsac/darwersi/%|%darwersi]:   othello like game

   [http://www.isi.edu/%7Ejohnh/SOFTWARE/JACOBY/%|%dontspace]:   solitaire card game

   [http://www.lindeman.com/Groupie/%|%groupie]:   shareware

   [http://www.guessasketch.com/%|%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.

   [http://home.earthlink.net/%7Ekarlgarrison/headache/%|%headache]:   tile game ''link dead 2004-06-05''

   [http://www.winton.freeserve.co.uk/tcl/hexplode.html%|%hexplode]:   

   [http://tkhextego.sourceforge.net/%|%hextego]:   statego game [LV] I was unable to locate this project

   [http://www.hf.rim.or.jp/%7Enagao/%|%higpentataki]:   action game [lv] this game doesn't seem to be on this page - Bad link 2014-04-24

   [http://avl.enemy.org/TclTk/%|%Ishido]:   & others

   [http://www.cc.utah.edu/%7Enb3367/%|%JergoBlatz!]:   a mail list server with support for play-by-email games

   [http://www.isi.edu/%7Ejohnh/SOFTWARE/JACOBY/%|%klondike]:   

   [http://www.cs.luther.edu/%7Emestanba/code.html%|%konnekt4]:   This link is dead

   [http://www.geocities.com/SiliconValley/Horizon/4329/kugel/Kugel.html%|%konnekt4]:   - Bad link 2014-04-24

   [http://homes.arealcity.com/lcross%|%lcross]:   - Bad link 2014-04-24

   [http://www.elf.org/tclsources.html%|%mankala]:   

   [http://www.man.ac.uk/~zzcgudf/tcl/#games/maze%|%maze exploring]:   client/server maze game

   [https://web.archive.org/web/20030508144459/www.bmrc.berkeley.edu/ftp/pub/multimedia/misc/MazeMan_1.0.tar.gz%|%MazeMan]:   

   [http://www.doc.ic.ac.uk/~np2/software/merlin.html%|%Merlin]:   

   [http://meta-x.de/moxquizz/%|%MoxQuizz]:   supports running quiz/trivia games on IRC

   [http://www.radonlabs.de/%|%nebula device]:   game engine using OpenGL for rendering

   [http://www.box.eu.org/%7Edl/netplug.html%|%netplug go game client]:   

   [ftp://ftp.procplace.com/pub/tcl/sorted/packages-7.6/games/wishmetaserver/wishmetaserver.tar.gz%|%netrek monitor]:   

   [http://patience.sourceforge.net%|%patience]:   solitaire game with multiple sets of rules, differing card fonts, etc. Available as StartKit on http://tcl.tk/starkits
   [http://www.naskita.com/linux/penguzzle/penguzzle.shtml%|%Penguzzle]:   

   [ftp://ftp.procplace.com/pub/tcl/sorted/packages-7.6/games/reversi-1.0/reversi-1.0.tk.gz%|%Reversi]:   

   [http://www.geocities.com/frankbannon/same/%|%Same Game]:   Tile-matching game
   [http://scid.sourceforge.net%|%SCID]:   Chess database program

   [http://www.geocities.com/frankbannon/sinktheship/%|%Sink the Ship]:   Battleship - human vs computer

   [http://bluesine.com/archives/software/slidem/%|%Slid'Em]:   tile sliding puzzle

   [http://www.mudconnector.com/%|%mud client]:   

   [ftp://tcltk.sourceforge.net/pub/tcltk/games/jeoparTk.tar.gz%|%jeoparTk] [ftp://tcltk.sourceforge.net/pub/tcltk/games/tkfeud.tar.gz%|%tkfeud] - [ftp://tcltk.sourceforge.net/pub/tcltk/games/whowants.tar.gz%|%whowants]:   Tcl/Tk conference games

   [ftp://ftp.wco.com/pub/users/pcoad/tclwumpus.tar.gz%|%tclwumpus]:   

   [http://www.etoyoc.com/tao/demos/tcltactao.tar.gz%|%Tcl-Tac-Tao]:   Complete Tic-Tac-Toe came with computer player

   [http://www.man.ac.uk/~zzcgudf/tcl/ttt.tcl%|%Tic-Tac-Toe]:   

   [http://tickletux.sourceforge.net/%|%TickleTux Hangman]:   

   [ftp://ftp.procplace.com/pub/tcl/sorted/packages-8.0/apps/timer/1.0/timer.tcl%|%timer for chess and other games]:   

   [http://www.cs.byu.edu/~williams/ataxx/tkataxx.html%|%tkAtaxx]:   

   [http://www.cs.mun.ca/%7Enzanella/personal/tkcheckers.html%|%tkcheckers]:   

   [http://pine.cs.yale.edu:4201/tkChess%|%tkChess]:   

   [http://www.elf.org/tkkanji/%|%tkKanji]:   kanji matching pair game

   [http://tkmame.retrogames.com/%|%tkMAME]:   a Tk front end for the Multiple Arcade Machine Emulator

   [ftp://ftp.procplace.com/pub/tcl/sorted/packages-7.6/games/tksquare.1.0.2/tksquare.1.0.2.tar.gz%|%tksquare magic square generator]:   

   [http://tktetris.sourceforge.net/%|%TkTetris]:   
   
   [http://free.house.cx/~eil/tktris.html%|%tkTris]:   

   [http://www.cs.umn.edu/Research/GIMME/video-poker.html%|%TkVP video Poker]:   

   [ftp://sunsite.unc.edu/pub/Linux/games/arcade/xblast-2.6.1.sound.tar.gz%|%TkVP video Poker]:   Tcl/tk xblast launcher

   [ftp://ftp.procplace.com/pub/tcl/sorted/packages-7.6/games/tkxpilots-2.0/tkxpilots-2.0.tar.gz%|%tkxpilots]:   xpilots game server creator
   
   [ftp://ftp.x.org/contrib/games/TkXpInterface-3.7.tar.gz%|%TkXpInterface] ([ftp://ftp.x.org/contrib/games/TkXpInterface-3.7.tar.gz%|%alternate]):   Tk interface to Xpilots server 

   [http://alpha.luc.ac.be/Research/Algebra/Members/Ttraffic/ttraffic.html%|%ttraffic rush hour]:   

   [http://www-vis.cs.umass.edu/%7Eheller/Workshop/%|%tux goes fishing]:   

   [http://www.cs.umn.edu/%7Edejong/tcl/game/game.tcl%|%video game]:   

   [http://hea-www.harvard.edu/~fine/Fun/vidgame.html%|%video game]:   arcade game

   [http://www.sek-ost.de/index.php?topic=wiggles%|%wiggles]:   a quest of tcl-powered dwarfs (c.f. Carsten Orthbands talk at the 2. Tcl Europe in June 2001)

   [http://www.geocities.com/frankbannon/wordsearch%|%Word Search]:   finds words for Scrabble and Jumble word games, fast

   [ftp://magoo.uwsuper.edu/pub/wt/srcs/%|%wt 3D game engine]:   with Tcl support:   

   [http://www.tcl.tk/community/features/Xconq.html%|%Xconq]:   strategy game engine has a Tk user interface

   [ftp://ftp.procplace.com/pub/tcl/sorted/packages-7.6/games/xibc-0.31/xibc-0.31.tar.gz%|%xibc]:   front end for the internet backgammon server

   [http://zbcw.sourceforge.net/%|%zotzBrothers Chess War]:   

   [http://code.google.com/p/andrews-deal/%|%andrews-deal]:   Deal out hands of bridge.



** Tcl Games mentioned in the past **

   [http://phaseit.net/claird/comp.lang.tcl/games/eDots-1.2.zip%|%edots]:   

   [http://www.cs.man.ac.uk/%7Efellowsd/tcl/%|%Various DKF Games]:   

   [http://www.darmstadt.gmd.de/%7Edyer/Tclets.html%|%Various Dyer Games]:   

   [http://www.cs.nmsu.edu/%7Ejcook/dotsgame.tar.gz%|%DotsGame]:   

   [http://www.hf.rim.or.jp/%7Enagao/stopwatch1.0.tar.gz%|%StopWatch]:   

   [http://freshmeat.net/projects/iceutils/%|%IceUtils]:   

   [http://www.cs.man.ac.uk/%7Efellowsd/tcl/#games/maze%|%Maze Exploring]:   

   [http://www.lyot.obspm.fr/%7Edl/Tclets/%|%Go]:   

   [http://www.lyot.obspm.fr/%7Edl/softs.html%|%tkconnect]:   

   [http://freshmeat.net/projects/ogc/%|%Original Gamer's Client (ogc)]:   

   [http://freshmeat.net/projects/tkdgen/%|%TkDgen]:   A Sega Genesis video game console emulator

   [http://www.creative-sadness.de/cgi-bin/index.pl?Site=Linux%|%tkdice]:   

   [http://www.cs.colostate.edu/%7Eanderson/code/pole-tcl.html%|%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:   


----
[http://gamescrafters.berkeley.edu/%|%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. https://github.com/GamesCrafters/GamesmanClassic%|%Github


<<discussion>>
[jcw] 2002-10-02:  With so many games available, and lots of them already packaged as [starkit] in [http://tcl.tk/starkits/]... 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 [http://gnuwin.epfl.ch/apps/en/index.html] 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 [http://tcl.tk/starkits/] ... :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 [Starkit]s 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 [http://www.awns.com/tkMOO-light/], as well as a few more mentioned on the [Interacting with the Internet] page.<<enddiscussion>>

!!!!!!
|[Tk Programs%|%previous : Tk Programs]|[Contents%|%up: Contents]|[demo%|%next : Demos]|
!!!!!!

<<categories>> Games | Tcl Browser Plugin