Skip to content

Latest commit

 

History

History
77 lines (50 loc) · 3.34 KB

3A4-linux-optional-edit-gtp2ogs-js-file.md

File metadata and controls

77 lines (50 loc) · 3.34 KB

HOME

0) COMMON : INTRODUCTION

1) COMMON : MESSAGE OGS MODERATORS

2) COMMON : GENERATE THE APIKEY

3A) FOR LINUX

3B) FOR WINDOWS

3A4) Optional : Modify gtp2ogs.js (for example force komi to 7.5)

User

If you're a user, you can use another branch than the default gtp2ogs devel or latest release by copy pasting another branch and overwriting existing files.

You can skip the rest of the page: Next Page ->

Developper:

You can tweak gtp2ogs to behave as you intend, preferably in a new branch.

You can skip to Next Page -> or read the example if you're curious:

Old example:

Below you will find a historical example before the --komis option existed, to workaround bots that only support komi 7.5 (PhoenixGo).

For example my AI cannot play a game if the komi is set to another value than 7.5 (for example 6.5 , 0.5 , 85.5 220.5, etc) , it gives the error message ? unacceptable komi.

To avoid that, since there is no --komis argument in gtp2ogs.js that would reject games without the wanted komi (would be 7.5 for me), then a trick is to lie to the AI, telling it that all games are played with a komi of 7.5 even if it’s not true :

The endgame scoring may become wrong because the AI is playing as if komi was 7.5 while it’s not always true, but this is not a problem in unranked games because most games end by resign.

In gtp2ogs.js (now moved to game.js):

i replaced this.command("komi " + state.komi);

With this.command("komi " + 7.5);

node82c

node82d

This is just an example

Next Page ->