part one: How to extend your scrabble:
part two: First screen
You can :
- add your own desks
- add your own dictionary
- add your own letters
- add your own lettersets
- add your own servers to control the letters
- play with yourself "with predicted letters"
- add yor own cursors
1:Add new desk:
just create new text file in Data\desks directory with this rules:
- line one is MxN where M is the size in x directionn and N is size
in Y direction for 2D desk. rectangle is alowed but there is an minor
bug.(but it can be palyable)
- for 3D desk is the synatx: MxNxZ where M is the size in x
directionn and N is size in Y direction and Z is number of floors. This
also signalized that the file will be 3D desktop.
- now each line needs to be exactly as long as M(in num. of characters)
- t=triple word
- d=double word
- x=double letter
- y=triple letter
- s=starting point (there can be more then one, but is not properly tested)
- space=just empty square(doubled word in fiirtst turn)
- 3D desks needs an empty (or however filled) line between individual levels.
- 3D desks needs as many floors as was specified in Z
- the "empty line" is nessesary at the end of 3D desk but not in 2D
- if game crasheses loading new desk, in 99% it is invoked by wrong length of any line or but num. of lines.
2. Add new Dictionary
just copy or create new text file to Data\dictionaries
The syntax is [WORD][SPACE-if you want an description][DESCRIPTION OF A NEW WORD - optional]
dictionary user is loaded always. The words added during gamepaly is included here.
- tree living thing, plant mostly with leaves and mostly with bark
- living thing, plant mostly with leaves and mostly with bark=descriotion
3. Add letters
Create image file (png(recomanded),jpg,bmp,non animated gif) with size
2^m x 2^n (ex: 16*32, but the square is recomanded) The game can accept
even image of diferent sizes then 2^x but your computer needn't
Save it enywhere, in Data\textures\letters\......\.... \..\.. = whenewer you wish with name as you want.
If you create your absolutly saprarate letterset, you need to create
also BACKGROUND of letters (or play with CUBE (F8 key) letters:-)
Background have the same resrictions as letter. Default background is Data\textures\w1.png
hint: try to creat png letter (bckgrounds etc,..) with ALPHA blenig included in image. You will be very surprised
Now it is nessesaru to tell the crable where to load letters:
again: just create, copy text file into Data\alfabets\...
otherlines are the letters of this alphabet:
- fitrs line is the way to background of letters, with prefered search in Data\textures\letters
- [Letter][space][value][space][quantity][space][path to texture, with prefered search in Data\textures\letters]
- the '*' character is
insted of lineseparator character (because of paltform independeci).
think about it as '/' on linux or '\' on windows.
- you can also use your native lineseparator but what if you wnt to sent this file to somebody else?
- % instead of letter is WILDCARD (JOKER in czech language;)
5.Add yor own servers to control the word
- You need to creat xml descriptor in Data\Servers
je ve slovníku
Maximlani delka 5
- server - tag with information about the server
- addres-adres to script which provaids the check
- methods: tag with information about data included to POST and GET method
- post or(and) get aellements:
- key and value in element item will be reformated to ?key=value&Key=value....all keys with their values in odrder as written in xmlan keyword [!word!] is repalced by sended word to be checked
- max_word_length is element with number which
indicate longest word acccepted by server. Longer word is not
send and, it is written in output in word is ACCEPTED
- encoding - if server needs any specified encoding (utf8,utf16,utf32,ansi...)
- prefered_method. Only one of three keywords is expected: [!get!],[!post!], [!both!] - menas which method is used
- word_found is an string which is to be searched on returned
page to force computer recognized that word was found in server
- word_notfound is an string which is to be searched on returned page to
force computer recognized that word was NOTfound in server database.
- mostly only one of those two elements needs to be fullfiled
- prefered_search - if computer will look for confirmation ( [!found!] keyword) or for refute ([!notfound!] keyword) in returned page
- keywodrs - just information element with unspecified context
- info just string with short description
whenewer you added new server descriptor, dont forget to test it by
select it on screen and press test selected ->start. However all
selected servers are tested in jscrabble3d loading progress. And if not
succesed, game is not started.
6 OPISOVANY SCRABBLE
Just create somewhere text file. Each line, with 7 letters is row
is one round of game, and you will have this letters. - = no letter
It is nessesary to finish the file with several ------- lines (it menas no letters and AI will stop playing).
be sure that the letterset you are using have all the letters in
nessesary quantyty. (ex create letterset with unlimited quantyity wor
all the letters;)
8 Add new cursor
Create new dictionary in Data\cursors
create and descriptor cr.txt
the synatx is [spannOfName][space][a][space][b][space][c][space][d][space][e][space][f][space][g]
all teh images needs to be an 2^m x 2^n and anly png is suported
- a=number of images-1 (0-a) ex a=40 tehn img 0-40 will be looking for
- e=image to be displayed whith rightclick
- f=image to be dispalyed with left click
- d =max animation index
- b point x - to center the image to the point of cursor horizontaly
- c point y - to center the image to the point of cursor verticaly
- g=length of NUMBER in filename (eg 4 = ruka0000 (you see four zeroes here)
beaware of alfa blending! it is sdtrongly recomanded to USE it
all changes will be avaiable after restarting the scrabble
part two: First screen
save - will save the palyers list to scrabble-players.txt file
- name of player
- behaviour of an player
- human - person siiting before this computer
- idiot -will try to put some random words on desk. Often to pass, easy to be defeated
- student - fast to play, prefere play short words. HARD to defeat.
- Master - prefere to test all the words and find the best
solution. IMPOSIBLE (:-) to deffeat, on 3D desk, unplayable
long turn (necessity of distributed AI)
- Commited sucide - prefere short words. Fast to play, normal to defett
- SuperCommited... - prefere SHORTEST words. Fast to play, hard to defeat because add something to cros xyx zyz....
- random - each turn will be one of the previous AI
laod will load the palyer list.
doubleclick on player on list will alow you to cn\hange its values
(don'yt press add, but press ENTER and the values will be changed)
addpalyer,removepalyer -no comment;)
mutiple word:some people like play scrabble only with one letter to turn.. Disable this check box to alow this variant of game
check words computer will check the words you have put before accept your turn (dont remember to select some dictionary!)
check word on the web - look 5.Add yor own servers to control the word
allow players checks - each player will be asked if the new apearece of the desk (*taht means all the letters palying one created) is (are) OK.
Letterset,Desk selectt letterset and desk for this game.
dictionary select dictionarieSSSSS for this game (longest word can aproximate the length of the turn of the AI)
If word is found... extension for check words on the web
- hotseat - game of 0-n palyers against 0-m AI, but at last one of them is nessesary;)
- internet N remote human palyers can play against M local ai and O local humans
SAVE- save current settings (scrabble-settings.xml)
- ogl the only one which now works. 3D, graohics ard dependent
- window, I'M LOOKING FOR VOULENTEER which will create this...
load - load saved settings
Name for NOT... This name will be used instead of palyer list if you are the client of internet game.
IP adress of server - ncmnt
this computer is server - your
computer is server, you need to SR\TART the game, others willl join,
your players list is used (you do not need to be in, but it is
Consoletime - how fast the console output will disapear
Console min time - how fast the console output will disapear if output is too long
randomize palyers - players will not play as is written in players list
enable inputconsole - allow
cheatconsole (TAB key) to be in game (you can used it for example
to fAI finishes your turn, or find a word with regex...)
cursor - ncmnt
if word is not in... - extension for allow palyers checks
jokers to be changed - ncmnt (key J in game)
Allow turn test - you can check your turn before send it to other players for check or to computer.
If turn is disagreed skip palyer - SadoMAso option, only 50% of sense with turn tests.
after chenging hthe joker lost turn - again variant of scrabble
only one palyer passes enough - again variant of scrabble, one player can finish the game, dangerous...
passes to finish - ncmnt...
sounds - nesesary when youare making another work and ai or network palyer is playing. This will call you ("YOUR TURN" ;)
DISTRIBUTED AI- each computer in game will thing its part - very fast and good when playing against MASTER