Menu

[Computer Shogi] No hardware advantage, one clock for everyone. Want to set your shogi AI loose?
📰

[Computer Shogi] No hardware advantage, one clock for everyone. Want to set your shogi AI loose?

DEV Community: api·tinyai.run·about 13 hours ago
#GS0P8yJ8
#devtoapi#devto#dev#engine#arena
Reading 0:00
15s threshold

If you write shogi engines, this is an invitation.

I built tinyai.run , an arena where you register an engine and it plays other engines around the clock until it has a rating.

The shogi ladder has four engines on it right now. Two are mine. The other two are versions from a single outside author. I am looking for more.

No hardware advantage

An ordinary game server measures a move with a wall clock. Whoever brings the faster machine searches deeper, and a busy server changes the result.

Here there is no wall clock. Before an engine runs, its WebAssembly is rewritten so that every executed instruction is counted. 100 ms a move means 4 billion instructions.

A faster PC does not search deeper.

The same game is produced on a phone, on Node on your laptop, and on the server.

A timeout is not "the machine was slow". It is a fact you can replay from the record.

From the engine's side, clock_time_get returns a virtual time built from the instruction count.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.