games/minesweeper - Basic implementation of classic Minesweeper game using different user interfaces.

The main purpose of this addon is to compare and contrast different the GUI building technologies available for J.

minefield.png

The following UI implementations are available:

The console interface should work from all front ends including the JHS. The Gtk interfaces should work from either the Jconsole or the Gtk IDE.

Browse the addon source using Trac.

Install

Use Package Manager to install the games/minesweeper addon.

Run

Below are some examples of running various UI versions. Obviously you can only run some scripts in a compatible environment, so the uiwd.ijs script can currently only be run using J6, and the gui/gtk based scripts will only run in J7.

   load 'games/minesweeper/uiwd'
   MinesweeperWd ''
   
   load 'games/minesweeper/uigtk'
   MinesweeperGtk ''

   load 'games/minesweeper/uigtk'
   MinesweeperGtk 20 20

   load 'games/minesweeper/uigtkglade'
   MinesweeperGtkGlade ''

   load 'games/minesweeper/uiconsole'
   fld=: MinesweeperCon ''

Motivation

The engine for this game began as a solution to a RosettaCode programming task. It then seemed to be a nice simple application that might serve as a type of Rosetta stone itself, showing how to translate a GUI from the J6 window driver (wd) toolset to the new J7 Gtk toolset.

Further development

As J tools and APIs for working with Gtk evolve, the Gtk scripts should hopefully get shorter and less complex.

Ideas for extending the game:

Authors

RicSherlock, BillLam, RaulMiller


CategoryGames

Addons/games/minesweeper (last edited 2011-05-17 09:59:25 by RicSherlock)