Skip to content

d180cf/problems

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The main script provides API to access the SGF files:

const sgf = require('sgf-problems');

for (const dir of sgf.dirs)
    for (const sgf of dir.problems)
        console.log(sgf.path + ': ' + sgf);

The SGF can be parsed:

const sgf = require('sgf-problems');
const tsumego = require('tsumego.js'); // 1.x

for (const dir of sgf.dirs) {
    for (const sgf of dir.problems) {
        const board = new tsumego.Board(sgf + '');
        console.log(sgf.path);
        console.log(board + '');
    }
}

About

Annotated SGF files with tsumego problems

Resources

Stars

Watchers

Forks

Packages

No packages published