GNU/Linux >> Belajar Linux >  >> Linux

Menggunakan Antarmuka Catur Universal

Saya telah membuat intisari ini yang merupakan dokumentasi terbaik yang dapat saya temukan -- sebagian besar tautan yang saya temukan telah mati

https://Gist.github.com/aliostad/f4470274f39d29b788c1b09519e67372


Mari kita asumsikan GUI memfasilitasi kecocokan antara pengguna manusia dan mesin. Katakanlah pengguna memulai dengan e2e4 . Maka perintahnya akan terlihat seperti:

// GUI: tell the engine to use the UCI protocol
uci

// ENGINE: identify  
id name Chess Engine
id author John Smith

// ENGINE: send the options that can be changed
//         in this case the hash size can have a value from 1 to 128 MB
option name Hash type spin default 1 min 1 max 128

// ENGINE: sent all parameters and is ready
uciok

// GUI: set hash to 32 MB
setoption name Hash value 32

// GUI: waiting for the engine to finish initializing
isready

// ENGINE: finished setting up the internal values and is ready to start
readyok

// GUI: let the engine know if starting a new game
ucinewgame

// GUI: tell the engine the position to search
position startpos moves e2e4

// GUI: tell the engine to start searching
//      in this case give it the timing information in milliseconds
go wtime 122000 btime 120000 winc 2000 binc 2000

// ENGINE: send search information continuously during search
//         this includes depth, search value, time, nodes, speed, and pv line
info depth 1 score cp -1 time 10 nodes 26 nps 633 pv e7e6
info depth 2 score cp -38 time 22 nodes 132 nps 2659 pv e7e6 e2e4
info depth 3 score cp -6 time 31 nodes 533 nps 10690 pv d7d5 e2e3 e7e6
info depth 4 score cp -30 time 55 nodes 1292 nps 25606 pv d7d5 e2e3 e7e6 g1f3

// ENGINE: return the best move found
bestmove d7d5

Saya telah menyederhanakan banyak aspek interaksi. GUI berfitur lengkap harus mendukung banyak perintah lain yang dapat Anda temukan di spesifikasi UCI (sumber lain). Anda juga dapat melihat cara kerja GUI yang ada. Misalnya, jika Anda menggunakan Arena, Anda dapat menekan F4 untuk melihat log interaksi perintah,


Linux
  1. Menjalankan aplikasi Qt melalui web

  2. kdevtmpfsi menggunakan seluruh CPU

  3. Bagaimana cara mengetahui antarmuka mana yang saya gunakan untuk terhubung ke internet?

  1. Memecahkan masalah menggunakan sistem file proc di Linux

  2. Menggunakan kekuatan di baris perintah Linux

  3. Apa overhead menggunakan subkulit?

  1. Menggunakan –exclude Dengan Perintah Du?

  2. Bagaimana mengubah nama antarmuka di CentOS/RHEL 8 menggunakan prefixdevname

  3. Buat antarmuka jaringan virtual menggunakan perintah iproute2 ip link dengan alamat MAC palsu