NGF

    Keywords: Software, Online Go

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

[ext] Wbaduk Ngf2Sgf Converter for Windows.

[ext] Java utility to convert to SGF: [ext] 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: [ext] 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"

Eric Backus modified and updated the above perl script, the result is downloadable from [ext] http://alum.mit.edu/www/eric_backus/.

(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)

(2013/26/05) The java utility ngf2sgf is currently under development at [ext] https://launchpad.net/ngf2sgf. The above bugs had been fixed. Do report any further bugs to launchpad.

(2014/04/03) GokifuCom Perl scripts for converting gib->sgf open sourced [ext] https://github.com/bazilxp/gokifu

GokifuCom itself supports conversion through uploadidng file

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.
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 for even games. Handicap games do not add 0.5.
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
(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.

NGF last edited by 194.251.119.199 on March 4, 2015 - 06:29
RecentChanges · StartingPoints · About
Edit page ·Search · Related · Page info · Latest diff
[Welcome to Sensei's Library!]
RecentChanges
StartingPoints
About
RandomPage
Search position
Page history
Latest page diff
Partner sites:
Go Teaching Ladder
Goproblems.com
Login / Prefs
Tools
Sensei's Library