Wordle: game of Mastermind to find a hidden word of five letters
See Obtaining the TCL Plugin for the code necessary to execute the following (which are mostly too large for a reasonable Wiki page)
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?
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...
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.