NGF
Table of contents |
NGF is an ASCII file format used by the Korean wBaduk server for game records.
Sample NGF file:
Oro2000 Promotional Match 19 jin42 10K* velobici 10K www.orozone.com 0 0 6 20060928 [08:59] 15 White loses on time 247 PMABBREER PMACWEQQE PMADBQRRQ PMAEWEEEE PMAFBPDDP ... PMJMWDGGD PMJNBEKKE
Software that can handle NGF files
Wbaduk Ngf2Sgf Converter for Windows.
Java utility to convert to SGF:
http://sourceforge.net/project/showfiles.php?group_id=155092
java utility chokes if:
player names contain spaces or periods ("Lee S.D."); player ranks are professional ranks ("9P"); game is not finished (line 11: "Progressing!"); game result is not "White/Black wins by score/resignation" ("White wins by resi!").
Perl script written by John Collins who couldn't get above to
work: http://www.stalbans-go.org.uk/ngf2sgf.pl
Great script. But replace
if (/resig/) {
with
if (/esig/) {
to handle case of capital 'R' in "Resign"
(N.B. Currently the 'Oro2000' is being missed from the first line of the NGF files by the Wbaduk server. This may make some routines that process NGF files fail. --PeterHB, 2009/11/02)
See Also
Go Game File Format
Format explanation
Initial lines:
- 1. Application name + game type
- Application name:
- Oro2000
- Game type:
- Promotional match = ranking game
- Friendly match = free game.
- Promotional match = ranking game
- 2. Boardsize
- 3. White player + rank
- 4. Black player + rank
- 5. Website name
- 6. Handicap
- 7. Unknown
- 8. Komi
- As a whole number. The 0.5 is assumed.
- 9. Date
- 10. Unknown
- 11. Result
- Example values:
- Black wins by resignation!
- White wins by resignation!
- Black wins by 16.5 points! >> White(66):Black(89)
- White wins by 18.5 points! >> White(100):Black(88)
- White loses on time
- White wins by resignation!
- (also) Progressing! (for games not finished)
- 12. Total no. moves
- Rest of file is the moves.
- PMABBREER
- Column meanings:
- Column 1+2 : PM = Player Move
- Column 3+4 : Move counter AB, AC, AD, ... AY, AZ, BA, BB, BC ...
- Column 5 : B or W = Black or white
- Column 6 -> 9 : Move coordinate.
- Column meanings:
- PMABBREER