Skip to content

Commit

Permalink
update REAME, default cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyenpham committed Jan 22, 2022
1 parent d0a4f22 commit e3f0be4
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 4 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,19 @@ make
In macOS, Windows, you can run and compile with Xcode/Visual Studio with the project files in the folder ```projects```.


## Usage

Users may run the program:
- for creating SQLite databases from PGN files:
```
ocgdb -pgn c:\games\big.png -db c:\db\big.ocgdb.db3 -cpu 4 -encode 2
```

- for querying positions:
```
ocgdb -db c:\db\big.ocgdb.db3 -cpu 4 -q "Q=3" -q"P[d4, e5, f4, g4] = 4 and kb7"
```

## History
* 23/01/2022: Version Alpha
* 20/11/2021: Improve/clean code, improve speed for benchmark
Expand Down
Binary file modified projects/.DS_Store
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion samples/carlsen.ocgdb.db3.zip
Git LFS file not shown
Binary file modified src/.DS_Store
Binary file not shown.
Binary file modified src/3rdparty/.DS_Store
Binary file not shown.
6 changes: 3 additions & 3 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ int main(int argc, const char * argv[]) {

// for creating
paraRecord.columnMovesMode = ocgdb::ColumnMovesMode::moves2;
// paraRecord.optionSet.insert(ocgdb::Option::comment_discard);
// paraRecord.optionSet.insert(ocgdb::Option::site_discard);
paraRecord.optionSet.insert(ocgdb::Option::comment_discard);
paraRecord.optionSet.insert(ocgdb::Option::site_discard);
// paraRecord.gameNumberLimit = 0xff;

// for querying
// paraRecord.optionSet.insert(ocgdb::Option::query_print_all);
paraRecord.optionSet.insert(ocgdb::Option::query_print_all);
paraRecord.optionSet.insert(ocgdb::Option::query_print_fen);

auto keepMovesField = false, setupMovesFields = false;
Expand Down

0 comments on commit e3f0be4

Please sign in to comment.