Search found 778 matches

by matthewlai
Thu Mar 28, 2019 11:32 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Some x64 assembler for the curious
Replies: 21
Views: 4317

Re: Some x64 assembler for the curious

I have already done the proof that handwritten assembler is faster. I have programmed two perft examples. One in pure C and one with handwritten assembler for the move generator, make move and take back. Both versions make and unmake all moves generated and do no cache counting. GNUChess 4 style in...
by matthewlai
Tue Mar 26, 2019 3:22 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Some x64 assembler for the curious
Replies: 21
Views: 4317

Re: Some x64 assembler for the curious

; ATTACKED BY BLACK - rax contains the square in question Atkbyblk proc mov r8d, wp[rax*4] ; wp indexed by square gives first entry in huge move table abb1: mov r9d, tosq[r8*4] ; from tosq[] we get the first destination square mov r10d, [rcx].t.board[r9*4] ; the index of piece on board - empty squa...
by matthewlai
Sat Jan 05, 2019 7:30 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: mcts question
Replies: 2
Views: 604

Re: mcts question

A: After tree policy, I am at a leaf node (for my tree in memory) and I want to expand. I figured a good idea would be expanding all children in parallel, but when you expand more than one child visit counts become an inaccurate way to judge the exploration of a given node because leaves have diffe...
by matthewlai
Tue Jan 01, 2019 2:47 am
Forum: Computer Chess Club: General Topics
Topic: Recent Alpha zero vs Stockfish 8 match.
Replies: 41
Views: 3666

Re: Recent Alpha zero vs Stockfish 8 match.

First some terminology: a value function is a function that predicts the outcome of the game given an input state. A policy function is a function that predicts the best move given a state. They are both necessary in both alpha-beta and MCTS, but that's more a practical detail than theoretical. The...
by matthewlai
Mon Dec 31, 2018 6:33 am
Forum: Computer Chess Club: General Topics
Topic: Recent Alpha zero vs Stockfish 8 match.
Replies: 41
Views: 3666

Re: Recent Alpha zero vs Stockfish 8 match.

NN keeps the results of the self play. When you use an NN-type engine the engine does nothing but search for sequence of moves in NN. Do you think Stockfish also uses pre-evaluated positions? Stockfish and other AB-type engines use a type of evaluation and NN-type engines use an other type of evalu...
by matthewlai
Mon Dec 31, 2018 6:29 am
Forum: Computer Chess Club: General Topics
Topic: Recent Alpha zero vs Stockfish 8 match.
Replies: 41
Views: 3666

Re: Recent Alpha zero vs Stockfish 8 match.

First some terminology: a value function is a function that predicts the outcome of the game given an input state. A policy function is a function that predicts the best move given a state. They are both necessary in both alpha-beta and MCTS, but that's more a practical detail than theoretical. Theo...
by matthewlai
Sun Dec 30, 2018 12:43 pm
Forum: Computer Chess Club: General Topics
Topic: Recent Alpha zero vs Stockfish 8 match.
Replies: 41
Views: 3666

Re: Recent Alpha zero vs Stockfish 8 match.

NN keeps the results of the self play. When you use an NN-type engine the engine does nothing but search for sequence of moves in NN. Do you think Stockfish also uses pre-evaluated positions? Stockfish and other AB-type engines use a type of evaluation and NN-type engines use an other type of evalu...
by matthewlai
Sat Dec 29, 2018 11:23 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: dotnet and winboard
Replies: 10
Views: 1121

Re: dotnet and winboard

You can implement either the "myname" option in feature command in CECP or "id name" in UCI.
by matthewlai
Sat Dec 29, 2018 11:13 am
Forum: Computer Chess Club: General Topics
Topic: translating chess material and author's right
Replies: 4
Views: 696

Re: translating chess material and author's right

I am not an expert on copyright law, let alone Isreali copyright law, but as far as I know, there's no exception for distributing the original with your derivative work. There is more to copyright law than revenue protection (which is what distributing the original compensates for) - eg. the author'...
by matthewlai
Sat Dec 29, 2018 11:02 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: neural network architecture
Replies: 7
Views: 1203

Re: neural network architecture

Daniel Shawul wrote:
Thu Dec 27, 2018 9:31 am
@Mathew Lai, How helpful is the policy network in chess ?
Extremely important. Vast majority of nodes in a typical tree only have 1 or 2 nodes that have been visited. Which 1 or 2 is (almost) entirely decided by the policy network (policy head of the network).