Changeset 7916 in spip-zone


Ignore:
Timestamp:
Dec 13, 2006, 5:00:43 PM (12 years ago)
Author:
patfr@…
Message:

le cavalier est de retour !

Location:
_plugins_/_stable_/jeux/inc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/_stable_/jeux/inc/diag_echecs_inc.php

    r7860 r7916  
    2525          $w.=",";
    2626        }
    27         $w .= ($diag_echecs_globales['english2french'][$fen[$i][$j]] . ($diag_echecs_globales['colonnes'][$col++]) . (8 - $i));
     27        $w .= ($diag_echecs_globales['english2french'][strtolower($fen[$i][$j])] . ($diag_echecs_globales['colonnes'][$col++]) . (8 - $i));
    2828      }
    2929      elseif ( ereg("[kqbnrp]", $fen[$i][$j] ) ) {
     
    8888        die("Erreur dans la syntaxe (diag_echecs_put_piece)!");
    8989
    90   $url = jeux_config('base_url').$side.$diag_echecs_globales['english'][$name].jeux_config('img_suffix');
    9190  $img_create = jeux_config('img_create');
    9291  $file = $img_create($url);
  • _plugins_/_stable_/jeux/inc/diag_echecs_init.php

    r7860 r7916  
    4040        // diverses initialisations
    4141        'colonnes' => "abcdefgh",
    42         'english' => array("r"=>"k", "d"=>"q", "t"=>"r", "f"=>"b", ""=>"n", "p"=>"p"),
    43         'letter2number' => array("a"=>1, "b"=>2, ""=>3, "d"=>4, "e"=>5, "f"=>6, "g"=>7, "h"=>8),
    44         'number2letter' => array(1=>"a", 2=>"b", 3=>"", 4=>"d", 5=>"e", 6=>"f", 7=>"g", 8=>"h"),
    45         'english2french' => array("K"=>"r", "Q"=>"d", "R"=>"t", "B"=>"f", "N"=>"", "P"=>"p",
    46                 "k"=>"r", "q"=>"d", "r"=>"t", "b"=>"f", "n"=>"", "p"=>"p"),
     42        'english' => array("r"=>"k", "d"=>"q", "t"=>"r", "f"=>"b", "c"=>"n", "p"=>"p"),
     43        'letter2number' => array("a"=>1, "b"=>2, "c"=>3, "d"=>4, "e"=>5, "f"=>6, "g"=>7, "h"=>8),
     44        'number2letter' => array(1=>"a", 2=>"b", 3=>"c", 4=>"d", 5=>"e", 6=>"f", 7=>"g", 8=>"h"),
     45        'english2french' => array("k"=>"r", "q"=>"d", "r"=>"t", "b"=>"f", "n"=>"c", "p"=>"p"),
    4746/*
    4847        Language     Piece letters (pawn knight bishop rook queen king)
     
    5453        Estonian     P R O V L K
    5554        Finnish      P R L T D K
    56         French       P F T D R fr
     55        French       P C F T D R        fr
    5756        German       B S L T D K        de
    5857        Hungarian    G H F B V K
Note: See TracChangeset for help on using the changeset viewer.