9.3 Open Source Java Applet Puzzle File Format


This document describes the file format ( *.tpz )used in the TooHot Crossword Puzzle Java Applet (Open Source Version). The Java Applet is under GNU GPL. It's source is open and is delivered with all other necessary files. You can download the package at [ http://www.tea.ch/ ] You may want to know how it looks like. Just go to the page [ http://www.tea.ch/en/crossword-puzzle.php ] and watch it in action. You can have a look at the source-code too.

9.3.1 Puzzle File

The puzzle file is a simple text-file which you can edit with a text-editor. It is a description of swedish style crossword puzzles which are very popular in switzerland. The main difference between standard crossword puzzles and swedish style crossword puzzle is that it contains clues definied within the puzzle. Instead of black blocks to separate words, clue fields are used.

Swedish Style Crossword Puzzle

11,11
0,0/ES/DECKGARN=Tierfangnetz//Tier-\nfangnetz
2,0/SW/KEIL=eingesetztes Stoffstück//einge-\nsetztes\nStoffstück
4,0/SW/UK=Abk.: unabkömmlich//Abk.: un-\nabköm-\nmlich
5,0/SS/ALOFI=Hauptort von Niue//Hauptort\nvon Niue
6,0/SE/KNIERIEM=scherzhaft für Schuster//scherz-\nhaft für\nSchuster
8,0/SE/MAD=Abk.: Militär. Abschirmdienst
10,0/SS/APL=Abk.: ausserplanmässig//Abk.: auss-\nerplan-\nmässig
8,1/EE/AA=Abk.: ad acta//Abk.:\nad acta
3,2/SS/SANUKO=Wasserhund, Nilsalmer//Wasser-\nhund,\nNilsalmer
4,2/EE/LEI=altfrz. Spielmannslied//altfrz.\nSpiel-\nmanns-\nlied
8,2/EE/DP=Abk.: displaced person//Abk.:\ndisplaced\nperson
0,3/EN/EIH=Auto-Z. Eichstätt//Auto-Z.\nEichstätt
2,3/EE/SOODEN=Kurort im Werratal//Kurort\nim\nWerratal
9,3/SW/NA=Abk.: nach Abzug//Abk.:\nnach\nAbzug
0,4/ES/LB=Abk.: Landbund//Abk.:\nLand-\nbund
1,4/SS/BARBIE=weltberühmte Puppe//weltbe-\nrühmte\nPuppe
4,4/EE/FARAH=persische Kaiserin//persische\nKaiserin
10,4/SW/HRO=Auto-Z. Hansestadt Rostock
2,5/EN/LA=Abk.: Lastenausgleich//Abk.:\nLasten-\nausgleich
4,5/EE/IRI=Fluss in Griechenland//Fluss in\nGriechen-\nland
8,5/EE/RB=Abk.: Radio Bremen//Abk.:\nRadio\nBremen
0,6/ES/KR=Abk.: Kreis//Abk.:\nKreis
2,6/EE/UD=arab. Laute im Mittelalter//arab.\nLaute im\nMittelalter
5,6/EE/LEGOS=Kinderbausteine//Kinder-\nbausteine
2,7/SS/RAU=dt. Nationalökonom +1870//dt. Nat-\nional-\nökonom\n+1870
4,7/SS/MAT=ägypt. Gottheit//ägypt.\nGottheit
5,7/EE/RM=Abk. f. e. frühere dt. Münze//Abk. f. e.\nfrühere dt.\nMünze
8,7/SS/LUR=afrik. Sprache//afrik.\nSprache
9,7/SS/EHE=bevor
10,7/SS/VRC=int. Auto-Z. Volksrepublik China
0,8/EE/BROM=chem., chemotechn. Begriff
5,8/SS/TO=Abk.: Tarifordnung//Abk.:\nTarif-\nordnung
6,8/SS/ON=an
7,8/EE/LEV=Auto-Z. Leverkusen//Auto-Z.\nLever-\nkusen
0,9/ES/NEUSTON=Tiere der Meeresoberfläche
3,9/EE/ATOMUHR=extrem genaues Zeitmessgerät
7,10/EE/REC=Abk.: recipe//Abk.:\nrecipe


Description

Pre-formatted clues are optional.

Direction

There are six directions available.

Formatted clue

You don't have to provide a pre-formatted clues but they look nicer than automatically formatted clues. For new lines use \n

1,4/SS/BARBIE=weltberühmte Puppe//weltbe-\nrühmte\nPuppe

The clue for the word BARBIE is "weltberühmte Puppe" to break it into separate lines like:

weltb-
rühmte
Puppe

you need to rewrite it to "weltbe-\nrühmte\nPuppe"