Crafty 22.1

Discussion of anything and everything relating to chess playing software and machines.

Moderator: Ras

Tony Thomas

Crafty 22.1

Post by Tony Thomas »

A silent crafty release.. What's going on? It's available for download from Jim abletts homepage..



http://homepages.tesco.net/henry.ablett/jims.html
User avatar
Denis P. Mendoza
Posts: 415
Joined: Fri Dec 15, 2006 9:46 pm
Location: Philippines

Re: Crafty 22.1

Post by Denis P. Mendoza »

Tony Thomas wrote:A silent crafty release.. What's going on? It's available for download from Jim abletts homepage..



http://homepages.tesco.net/henry.ablett/jims.html

I only saw it at Bob's ftp site 2 -3 days ago, and http://craftychess.com/ which stated:

Crafty 22.1 is now available!
This release includes some minor bug fixes, a small time control change for very short games, and some tweaks for more compatible compiling. A new SKILL option is now available to reduce Crafty's strength (so people like me can win too).
(Refer to main.c comments for copiling and usage of the SKILL option.)

Maybe Bob didn't bother to extend the news as it was just a minor update, and does not improve elo. It's compiler friendly even before and now. The tweaks could be related to discussions taken the long Crafty 22 threads in the past.

I don't have an idea on how this SKILL option can be tweaked in the crafty.rc file. I'll check the code or extract the crafty.cpf (personality file) to look for this option.

Maybe you have an idea on this or anyone for that matter!
User avatar
Denis P. Mendoza
Posts: 415
Joined: Fri Dec 15, 2006 9:46 pm
Location: Philippines

Re: Crafty 22.1

Post by Denis P. Mendoza »

This is the crafty.cpf. No sign of 'SKILL' option. But this is mainly where I tweak Crafty's personality.

Code: Select all

# Crafty v22.1 personality file
extension/onerep      0.75
extension/check       1.00
extension/mate        0.75
selective             2 3
evaluation   1     100  -> pawn value                      
evaluation   2     325  -> knight value                    
evaluation   3     325  -> bishop value                    
evaluation   4     500  -> rook value                      
evaluation   5     970  -> queen value                     
evaluation   6      90  -> bad trade bonus/penalty         
evaluation   7       5  -> wtm bonus                       
evaluation  11       2  -> center pawn blocked             
evaluation  12       2  -> pawn duo                        
evaluation  13 0 10 20 30 40 50 60 70 80   -> pawn weak [n]                   
evaluation  14 0 0 0 15 30   -> pawn islands [0-4]              
evaluation  15     525  -> pawn can promote                
evaluation  16 100 100 80 60 40 20 10 0   -> won kp ending                   
evaluation  17      50  -> split passed pawn bonus         
evaluation  18     100  -> outside passed pawn             
evaluation  19 0 0 0 0 0 0 0 0 70 70 70 70 70 70 70 70 10 10 10 30 30 10 10 10 6 6 6 16 16 6 6 6 3 3 3 13 13 3 3 3 1 1 1 10 10 1 1 1 0 0 0 -12 -12 0 0 0 0 0 0 0 0 0 0 0   -> pawn piece/square table         
evaluation  20 0 0 20 40 80 140 200 0   -> connected passed pawn [rank]    
evaluation  21      40  -> hidden passed pawn [rank]       
evaluation  22 0 12 20 48 72 120 150 0   -> passed pawn [rank]              
evaluation  23 0 6 10 24 36 60 75 0   -> blockading a passed pawn [rank] 
evaluation  24 0 0 5 8 11 11 11 11 11   -> doubled pawn [n]                
evaluation  25 0 0 0 20 40 60 100 0   -> supported passed pawn [rank]    
evaluation  31 0 3 3 2 1 0 0 0   -> king tropism [distance]         
evaluation  32 -60 -29 -29 -29 -29 -29 -29 -60 -30 -24 -10 -10 -10 -10 -24 -30 -30 -6 -6 -6 -6 -6 -6 -30 -30 -6 -2 0 0 -2 -6 -30 -30 -6 -2 0 0 -2 -6 -30 -30 -6 -6 -6 -6 -6 -6 -30 -30 -24 -10 -10 -10 -10 -24 -30 -60 -29 -29 -29 -29 -29 -29 -60   -> knight piece/square table       
evaluation  33 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 10 24 24 10 0 0 0 5 10 24 24 10 5 0 0 5 10 20 20 10 5 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0   -> outpost [square]                
evaluation  41      36  -> bishop over knight endgame      
evaluation  42     174  -> bishop trapped                  
evaluation  43 0 2 2 1 0 0 0 0   -> king tropism [distance]         
evaluation  44 1 2 3 5   -> bishop mobility/square table    
evaluation  51      24  -> rook on 7th                     
evaluation  52      10  -> rook connected 7th rank         
evaluation  53      40  -> rook trapped                    
evaluation  54      24  -> rook behind passed pawn         
evaluation  55      10  -> rook half open file             
evaluation  56 0 0 0 0 0 0 0 0 20 27 35 40 40 35 27 20 13 18 23 26 26 23 18 13 10 13 17 20 20 17 13 10 10 13 17 20 20 17 13 10 10 13 17 20 20 17 13 10 10 13 17 20 20 17 13 10 10 13 17 20 20 17 13 10 10 13 17 20 20 17 13 10   -> rook open file [9][8]           
evaluation  57      16  -> rook reaches open file          
evaluation  58 0 4 3 2 1 1 1 1   -> king tropism [distance]         
evaluation  59 1 2 3 4   -> rook mobility/square table      
evaluation  61      50  -> queen rook on 7th rank          
evaluation  62      30  -> queen offside                   
evaluation  63 0 6 5 4 3 2 2 2   -> king tropism [distance]         
evaluation  64 -20 -20 0 0 0 0 -20 -20 -20 0 8 8 8 8 0 -20 0 8 8 12 12 8 8 0 0 8 12 16 16 12 8 0 0 8 12 16 16 12 8 0 0 8 8 12 12 8 8 0 -20 0 8 8 8 8 0 -20 -20 -20 0 0 0 0 -20 -20   -> queen piece/square table        
evaluation  71      10  -> king king tropism (endgame)     
evaluation  72     600  -> king safety trojan horse threat 
evaluation  73 -40 -40 -40 -40 -40 -40 -40 -40 -40 -10 -10 -10 -10 -10 -10 -40 -40 -10 60 60 60 60 -10 -40 -40 -10 60 60 60 60 -10 -40 -40 -10 40 40 40 40 -10 -40 -40 -10 20 20 20 20 -10 -40 -40 -10 -10 -10 -10 -10 -10 -40 -40 -40 -40 -40 -40 -40 -40 -40   -> king piece/square normal        
evaluation  74 -60 -40 -20 -20 -20 -20 -20 -20 -60 -40 -20 20 40 40 40 40 -60 -40 -20 20 60 60 60 40 -60 -40 -20 20 60 60 60 40 -60 -40 -20 20 40 40 40 40 -60 -40 -20 20 20 20 20 20 -60 -40 -20 0 0 0 0 0 -60 -40 -20 -20 -20 -20 -20 -20   -> king piece/square kside pawns   
evaluation  75 -20 -20 -20 -20 -20 -20 -40 -60 40 40 40 40 20 -20 -40 -60 40 60 60 60 20 -20 -40 -60 40 60 60 60 20 -20 -40 -60 40 40 40 40 20 -20 -40 -60 20 20 20 20 20 -20 -40 -60 0 0 0 0 0 -20 -40 -60 -20 -20 -20 -20 -20 -20 -40 -60   -> king piece/square qside pawns   
evaluation  76 6 5 4 4 4 4 5 6   -> king safe open file [file]      
evaluation  77 4 4 3 3 3 3 4 4   -> king safe half-open file [file] 
evaluation  78 0 7 14 21 28 35 42 49 56 63 70 77 84 91 98 105   -> king safety pawn-shield vector  
evaluation  79 0 1 2 3 4 5 11 20 32 47 65 86 110 137 167 200   -> king safety tropism vector      
evaluation  81      12  -> development thematic            
evaluation  82      12  -> development blocked center pawn 
evaluation  83      20  -> development losing castle rights
evaluation  84      20  -> development not castled         
Another info:
22.1 minor fix for CPUS=1, which would cause compile errors. other *
* eval tweaks to improve scoring. new "skill" command that can be *
* used to "dumb down" crafty. "skill <n>" where n is a number *
* between 1 and 100. 100 is max (default) skill. skill 70 will *
* drop the playing Elo by about 200 points. skill 50 will drop it *
* about 400 points. the curve is not linear, and the closer you *
* get to 1, the lower the rating. To use this feature, you need to *
* add -DSKILL to your Makefile options otherwise it is not included *
* in the executable. *

I tried adding this option in the crafty.rc file and it worked.

skill 100 is the maximum skill
skill 1 is the minimum skill


For those compiling, don't forget to add preprocessor option /DSKILL OR /D "SKILL" , else this option is disabled.