Skip to content

Commit

Permalink
Enable the ''randomness" feature of Edax.
Browse files Browse the repository at this point in the history
Update README.
  • Loading branch information
2Bear committed May 23, 2020
1 parent 6c8adcc commit 40042f4
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,18 @@ On the [releases page](https://github.com/2Bear/othello-zero/releases) you can d

<img src="doc/img/plot.png">

## checkpoint File

The **checkpoint** file is just a bookmark file. You can create it manually.

Create a new text file named **checkpoint**. Edit it. Here is a example, just one line:
```
model_checkpoint_path: "v117-14797350"
```
You can replace `v117-14797350` with any checkpoint name such as `v001-49150`.

In this way, you can choose different checkpoints to restore, and compare them.

## Comparison

| | AlphaGo Zero | AlphaZero | othello-zero |
Expand Down
4 changes: 3 additions & 1 deletion api.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ def __init__(self):
def set_level(self, level):
self.write_stdin("l " + str(level))
self.read_stdout()

self.write_stdin("b randomness")
self.read_stdout()

def make_move(self, move):
if move == config.pass_move:
self.write_stdin("pass")
Expand Down

0 comments on commit 40042f4

Please sign in to comment.