![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
go-engine-tester
Advanced tools
This program can compare the strength of two Go (围棋, 囲碁, 바둑) engines that are GTP-compatible by running a batch of games between them. It can also compare the strength under different options of the same engine.
Add a file config.json
, then run:
npx go-engine-tester config.json
config.json
example:
{
"first": {
"command": "./leelaz",
"args": ["-w", "network-173.gz", "--gtp", "--noponder"],
"initialGtpCommands": [
{"name": "komi", "args": ["7.5"]},
{"name": "time_settings", "args": ["0", "0", "1"]},
{"name": "boardsize", "args": ["19"]}
]
},
"second": {
"command": "./leelaz",
"args": ["-w", "network-157.gz", "--gtp", "--noponder"],
"initialGtpCommands": [
{"name": "komi", "args": ["7.5"]},
{"name": "time_settings", "args": ["0", "0", "1"]},
{"name": "boardsize", "args": ["19"]}
]
},
"times": 30
}
This will play 30 games between the two engines, alternating black and white for each game, and finally print the result. Note that the path in command
is relative to the working directory not the config file. Also note that on Windows, use \\
not \
for path separator, or just use /
.
For details of GTP commands such as time_settings
, click here.
You may do tests on a computer that can shut down at any random time. An example is EC2 Spot Instances. In this situation, you may want to send reports regularly to a server to prevent data loss. The optional report
property is for that:
{
...
"report": {"minutes": 10, "uriPrefix": "https://example.com/report"}
}
Every 10 minutes, it will send an HTTP GET request to https://example.com/report?testerId=<testerId>&firstWins=<firstWins>&total=<total>
, where <testerId>
is a random (but fixed during the tester process) string. Note that in this report, <total>
is always an even number. The report reflects the last state when <total>
is even.
There's an optional spawnOptions
property, so that it could pass environment variables to the engine processes. For example:
{
"first": {
"command": "./leelaz",
"args": ["-w", "network-173.gz", "--gtp", "--noponder"],
"initialGtpCommands": [
{"name": "komi", "args": ["7.5"]},
{"name": "time_settings", "args": ["0", "0", "1"]},
{"name": "boardsize", "args": ["19"]}
],
"spawnOptions": {
"env": {
"DYLD_LIBRARY_PATH": "/Users/your-name/boost_1_67_0/lib"
}
}
},
"second": {
"command": "./leelaz",
"args": ["-w", "network-157.gz", "--gtp", "--noponder"],
"initialGtpCommands": [
{"name": "komi", "args": ["7.5"]},
{"name": "time_settings", "args": ["0", "0", "1"]},
{"name": "boardsize", "args": ["19"]}
],
"spawnOptions": {
"env": {
"DYLD_LIBRARY_PATH": "/Users/your-name/boost_1_67_0/lib"
}
}
},
"times": 30
}
For details of spawnOptions
, click here.
Q: Why does it restart the process for each game? Process initialization can be slow!
A: This ensures that each game is treated equally. A lot of programs are so smart that they can cache the previous calculation to speed up calculations for the next game. We must avoid that, otherwise the result may be incorrect.
FAQs
Go (围棋, 囲碁, 바둑) engine tester
The npm package go-engine-tester receives a total of 2 weekly downloads. As such, go-engine-tester popularity was classified as not popular.
We found that go-engine-tester demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.