en cs

Volby příkazové řádky programu Nochetopgn

Tato stránka popisuje volby příkazové řádky programu nochetopgn.

Nápověda

Použijte --help k zobrazení voleb příkazové řádky.

$ nochetopgn --help
nochetopgn 3.1.0 Author: Petr Bilek
USAGE: nochetopgn [-h|--help]  [-o|--owner] [-d|--debug] [--pgn |--json |--json-full|--jtree|--jtree-full|--counter]
	--help      - show this help
	--owner     - show owner information
	--pgn       - output as PGN file
	--json      - output every game as one json; games are separated by "\t   \t\n"
	--json-full - output all games as one json
	--jtree     - as json, but moves are in a tree structure
	--jtree-full - as json-full, but moves are in a tree structure
	--counter   - output number of games

        
$ nochetopgn --help
nochetopgn 2.7.1 Author: Petr Bilek
USAGE: nochetopgn [-h|--help]  [-o|--owner] [-d|--debug] [--pgn |--json |--json-full|--counter]
	--help      - show this help
	--owner     - show owner information
	--pgn       - output as PGN file
	--json      - output every game as one json; games are separated by "\t   \t\n"
	--json-full - output all games as one json
	--counter   - output number of games

        

PGN výstup

Použijte --pgn ke konverzi standardního vstupu v PGN formátu do PGN formátu.
Toto se může použít k testování validnosti PGN vstupu.

Output example

[Event ""]
[Date "2025.02.10"]
[Round "-"]
[White "?"]
[Black "?"]
[Result "*"]
[CreatedBy "Nocheto (Noidea Chess Tool) 3.1.0"]
[NochetoTreeNumber "3.0x5"]

1.e4 e5 2.Nf3 Nc6 3.Bb5 { Ruy Lopez } 3...a6 4.Ba4 ! ( 4.Bxc6 bxc6 ) b5 5.Bb3 Bb7 ( 5...Be7 6.O-O Nf6 ) *

JSON výstup

Použijte --json ke konverzi standardního vstupu v PGN formátu do JSON formátu, kde je každá partie vytištěna jako samostatný JSON objekt. Tyto objekty jsou od sebe odděleny pomocí řetězce \t   \t\n (kde \t reprezentuje tabulátor a \n novou řádku. Mezi tabulátory jsou tři mezery).

Příklad výstupu

{
"tags" : {
        "Event" : "", 
        "Date" : "2025.02.10", 
        "Round" : "-", 
        "White" : "?", 
        "Black" : "?", 
        "Result" : "*", 
        "CreatedBy" : "Nocheto (Noidea Chess Tool) 3.1.0", 
        "NochetoTreeNumber" : "3.0x5"
 },
"result": "*", 
 "moves" : [ 
        { "move" : "e4", "nags" : [], "cb" : "", "ca" : "", "alternatives": []}, 
        { "move" : "e5", "nags" : [], "cb" : "", "ca" : "", "alternatives": []}, 
        { "move" : "Nf3", "nags" : [], "cb" : "", "ca" : "", "alternatives": []}, 
        { "move" : "Nc6", "nags" : [], "cb" : "", "ca" : "", "alternatives": []}, 
        { "move" : "Bb5", "nags" : [], "cb" : "", "ca" : " Ruy Lopez ", "alternatives": []}, 
        { "move" : "a6", "nags" : [], "cb" : "", "ca" : "", "alternatives": []}, 
        { "move" : "Ba4", "nags" : ["!"], "cb" : "", "ca" : "", "alternatives": [
         { 
         "moves" : [ 
                { "move" : "Bxc6", "nags" : [], "cb" : "", "ca" : "", "alternatives": []}, 
                { "move" : "bxc6", "nags" : [], "cb" : "", "ca" : "", "alternatives": []}
         ]
         }
        ]
        }, 
        { "move" : "b5", "nags" : [], "cb" : "", "ca" : "", "alternatives": []}, 
        { "move" : "Bb3", "nags" : [], "cb" : "", "ca" : "", "alternatives": []}, 
        { "move" : "Bb7", "nags" : [], "cb" : "", "ca" : "", "alternatives": [
         { 
         "moves" : [ 
                { "move" : "Be7", "nags" : [], "cb" : "", "ca" : "", "alternatives": []}, 
                { "move" : "O-O", "nags" : [], "cb" : "", "ca" : "", "alternatives": []}, 
                { "move" : "Nf6", "nags" : [], "cb" : "", "ca" : "", "alternatives": []}
         ]
         }
        ]
        }
 ]
}

Volba json-full

Použijte --json-full k výstupu v JSON formátu, kde jsou všechny hry součástí jednoho objektu (pole).

Příklad výstupu

[
{
"tags" : {
        "Event" : "", 
        "Date" : "2025.02.10", 
        "Round" : "-", 
        "White" : "?", 
        "Black" : "?", 
        "Result" : "*", 
        "CreatedBy" : "Nocheto (Noidea Chess Tool) 3.1.0", 
        "NochetoTreeNumber" : "3.0x5"
 },
"result": "*", 
 "moves" : [ 
        { "move" : "e4", "nags" : [], "cb" : "", "ca" : "", "alternatives": []}, 
        { "move" : "e5", "nags" : [], "cb" : "", "ca" : "", "alternatives": []}, 
        { "move" : "Nf3", "nags" : [], "cb" : "", "ca" : "", "alternatives": []}, 
        { "move" : "Nc6", "nags" : [], "cb" : "", "ca" : "", "alternatives": []}, 
        { "move" : "Bb5", "nags" : [], "cb" : "", "ca" : " Ruy Lopez ", "alternatives": []}, 
        { "move" : "a6", "nags" : [], "cb" : "", "ca" : "", "alternatives": []}, 
        { "move" : "Ba4", "nags" : ["!"], "cb" : "", "ca" : "", "alternatives": [
         { 
         "moves" : [ 
                { "move" : "Bxc6", "nags" : [], "cb" : "", "ca" : "", "alternatives": []}, 
                { "move" : "bxc6", "nags" : [], "cb" : "", "ca" : "", "alternatives": []}
         ]
         }
        ]
        }, 
        { "move" : "b5", "nags" : [], "cb" : "", "ca" : "", "alternatives": []}, 
        { "move" : "Bb3", "nags" : [], "cb" : "", "ca" : "", "alternatives": []}, 
        { "move" : "Bb7", "nags" : [], "cb" : "", "ca" : "", "alternatives": [
         { 
         "moves" : [ 
                { "move" : "Be7", "nags" : [], "cb" : "", "ca" : "", "alternatives": []}, 
                { "move" : "O-O", "nags" : [], "cb" : "", "ca" : "", "alternatives": []}, 
                { "move" : "Nf6", "nags" : [], "cb" : "", "ca" : "", "alternatives": []}
         ]
         }
        ]
        }
 ]
}
]

Volba jtree3.0.0

Použijte --jtree ke konverzi standardního vstupu ve formátu PGN do formátu JSON. Tyto objekty jsou od sebe odděleny pomocí řetězce \t   \t\n (kde \t reprezentuje tabulátor a \n novou řádku. Mezi tabulátory jsou tři mezery).

Tato volba tiskne ve stejném JSON formátu jako příkaz printjtree v nochetu.

Příklad výstupu

{
"tags" : {
        "Event" : "", 
        "Date" : "2025.02.10", 
        "Round" : "-", 
        "White" : "?", 
        "Black" : "?", 
        "Result" : "*", 
        "CreatedBy" : "Nocheto (Noidea Chess Tool) 3.1.0", 
        "NochetoTreeNumber" : "3.0x5"
 },
"result": "*", 
"moves" : [
 { "move" : "e4", "nags" : "", "cb" : "", "ca" : "", "moves" : [
  { "move" : "e5", "nags" : "", "cb" : "", "ca" : "", "moves" : [
   { "move" : "Nf3", "nags" : "", "cb" : "", "ca" : "", "moves" : [
    { "move" : "Nc6", "nags" : "", "cb" : "", "ca" : "", "moves" : [
     { "move" : "Bb5", "nags" : "", "cb" : "", "ca" : " Ruy Lopez ", "moves" : [
      { "move" : "a6", "nags" : "", "cb" : "", "ca" : "", "moves" : [
       { "move" : "Ba4", "nags" : "!", "cb" : "", "ca" : "", "moves" : [
        { "move" : "b5", "nags" : "", "cb" : "", "ca" : "", "moves" : [
         { "move" : "Bb3", "nags" : "", "cb" : "", "ca" : "", "moves" : [
          { "move" : "Bb7", "nags" : "", "cb" : "", "ca" : "", "moves" : [
          ]},
          { "move" : "Be7", "nags" : "", "cb" : "", "ca" : "", "moves" : [
           { "move" : "O-O", "nags" : "", "cb" : "", "ca" : "", "moves" : [
            { "move" : "Nf6", "nags" : "", "cb" : "", "ca" : "", "moves" : [
            ]}
           ]}
          ]}
         ]}
        ]}
       ]},
       { "move" : "Bxc6", "nags" : "", "cb" : "", "ca" : "", "moves" : [
        { "move" : "bxc6", "nags" : "", "cb" : "", "ca" : "", "moves" : [
        ]}
       ]}
      ]}
     ]}
    ]}
   ]}
  ]}
 ]}
]
}

Volba jtree-full3.0.0

Použijte volbu --jtree-full k výstupu všech her ve stejném formátu jako při použití -jtree, ale v jednom JSON objektu (poli).

Počítadlo

Použijte --counter ke spočítání všech her v PGN souboru.

Příklad výstupu

1
res = 0; c = 1

Hodnota res by měla být vždy 0 (pokud nedojde k nějaké chybě při parsování). Hodnota čísla na prvním řádku a za písmenem c je tatáž - jde o počet nalezených her.

Vlastník2.1.0

Použijte volbu --owner k zobrazení informací o vlastníkovi.