Marco Costalba
8097e99c69
Stockfish 1.0
...
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
2008-11-02 15:35:32 +01:00
Marco Costalba
2fa9d25e82
Disable LSN filtering as defualt for release
...
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
2008-11-02 15:35:02 +01:00
Marco Costalba
3e275680d5
Use MVV/LVA in score_evasions()
...
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
2008-11-02 15:00:28 +01:00
Marco Costalba
d087b0a34a
Delay SEE for scoring captures
...
Do not calculate SEE on all the moves in MovePicker::score_captures()
but delay until pick_move_from_list() when only the best ones are
double checked against their see value.
If a beta cut-off occurs then we avoid calculating SEE on all
the moves, but just the picked ones.
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
2008-11-02 15:00:28 +01:00
Marco Costalba
55b6464d40
search: micro optimization
...
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
2008-11-02 15:00:28 +01:00
Marco Costalba
b5232e2da3
Fix a couple of gcc warnings in position.cpp
...
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
2008-11-02 15:00:19 +01:00
Marco Costalba
35bd334b30
Update README to Stockfish
...
Remove Glaurung references.
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
2008-11-02 15:00:09 +01:00
Marco Costalba
6e8bd8bf2d
Final touches to material.cpp
...
No functional changes, altough a bit of code reshuffle.
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
2008-11-01 12:46:54 +01:00
Marco Costalba
899b9455d6
Material: lockless per-thread maps
...
Adds a good bunch of code but should be faster
and scalable because is lockless.
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
2008-11-01 12:46:54 +01:00
Marco Costalba
8b57416ace
Revert "MovePicker::score_captures() order with SEE when pv"
...
Does not seem to increase the strenght.
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
2008-11-01 12:46:54 +01:00
Marco Costalba
1146fc8d09
Space inflate move.cpp
...
Also a little cleanup.
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
2008-11-01 12:46:53 +01:00
Marco Costalba
6e5cf2f3c5
Revert "Relax time constraints"
...
Does not seem to give an improvment, acutually it seems
a totally neutral change.
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
2008-11-01 12:46:53 +01:00
Marco Costalba
e5ebd4f5d1
Partially space inflate search.cpp
...
Space inflate main remaining functions in search.
No functional change.
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
2008-11-01 12:46:53 +01:00
Marco Costalba
cf2bafb661
Relax time constraints
...
Allow a seacrh to take a bit more time if needed.
This reduces the chanches of wast all the search time
for the last iteration and also allow to start the last
iteration when we have less time remaining.
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
2008-11-01 12:46:53 +01:00
Marco Costalba
79513e3a43
Material: micro optimize map reading
...
Do only one map walk per read instead of two.
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
2008-11-01 12:46:52 +01:00
Marco Costalba
bd3ec6af15
Material: protect global map access with locks
...
STL library is not guaranteed to be thread safe, even for
read-access.
So because these global maps are accessed by all the threads
we need to protect them.
This fixes a random crash experienced during testing.
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
2008-11-01 12:46:52 +01:00
Marco Costalba
b2b86cfd27
MovePicker::score_captures() order with SEE when pv
...
Order PV nodes by SEE instead of MVV/LVA.
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
2008-11-01 12:46:52 +01:00
Marco Costalba
7d717df4e4
Revert "Last minute surprise" for now
...
It defenitly needs more testing. Just postponed.
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
2008-11-01 12:46:52 +01:00
Marco Costalba
5e906ea10e
Finish material.cpp cleanup
...
Hopefully no regression this time!
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
2008-11-01 12:46:52 +01:00
Marco Costalba
73cce873de
Start to simplify material.cpp
...
It is posisble to simplify a lot here!
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
2008-11-01 12:46:51 +01:00
Marco Costalba
038235ba35
Factor out Position::do_capture_move()
...
Start to slim line count i position.cpp
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
2008-11-01 12:46:51 +01:00
Marco Costalba
5e2fc2aa16
Fix a bug in generate_evasions()
...
Introduced in the patch "movegen: prefer (*mlist++) to mlist[n++]"
This was nasty because due to a mismerge the repo in one PC had the bug,
but the testing one did not, so I had non reproducible results according
to which machine I used for testing.
This hopefully closes a more then one week regression that made me go crazy!
It was found by accident comparing, for other reasons, the sources of the
two PC's.
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
2008-11-01 12:46:51 +01:00
Marco Costalba
74fd57220e
Refine "few moves" in "last minute surprise"
...
It seems that "few moves" works because we extend the good
captures at the last ply of PV, so code it directly.
This version seems defenitly stronger then previous one.
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
2008-11-01 12:46:51 +01:00
Marco Costalba
74f1efee26
Manual merge
2008-10-26 21:44:58 +01:00
Marco Costalba
0936a96a0e
Space inflate extension() code
...
No functional change.
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
2008-10-26 21:30:21 +01:00
Marco Costalba
13d1776a98
TEST: extend when few moves available
...
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
2008-10-26 21:30:21 +01:00
Marco Costalba
a56e1c662c
Revert see shortcut when only one attacker
...
It does not seem to work after a little testing.
Perhaps it works on the long terms, but it is also
ugly because not correct, so revert for now.
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
2008-10-26 21:30:21 +01:00
Marco Costalba
fcc49561a1
Prefer out of loop variables in MovePicker::score_captures()
...
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
2008-10-26 21:30:21 +01:00
Marco Costalba
714069e248
Effectively use MVV/LVA in MovePicker::score_captures()
...
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
2008-10-26 21:30:20 +01:00
Marco Costalba
88885399f4
Reintroduce piece/square tables to score non-captures
...
Was removed after original movepick restore. But proved
to be useful.
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
2008-10-26 21:30:20 +01:00
Marco Costalba
a5c1b3e8f6
Position: fix a couple of Intel compiler warnings
...
Plus usual trailing whitespace.
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
2008-10-26 13:23:27 +01:00
Marco Costalba
8a85007023
Test with SEE shortcut
...
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
2008-10-26 10:11:13 +01:00
Marco Costalba
4397e6c03e
Better naming of pseudo-legality and legality testing
...
No functional change.
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
2008-10-26 10:11:13 +01:00
Marco Costalba
4f14bd5032
Try to cleanup movepick
...
Hopefully without regressions.
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
2008-10-26 10:11:13 +01:00
Marco Costalba
f8bc38a006
Restore original movepick modulo space inflation
...
We have a regression somewhere here so restart from zero
and proceed one change at a time.
With this modification we have the same strenght of
"Introduce Stockfish" patch that is our strongest to date.
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
2008-10-26 10:11:13 +01:00
Marco Costalba
5dd9159106
Space inflate position: complete!
...
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
2008-10-26 10:10:56 +01:00
Marco Costalba
ad956ef00a
Space inflate position until do_promotion_move()
...
We will end some day ;-)
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
2008-10-24 21:10:05 +02:00
Marco Costalba
d155cd88d1
Start to space inflate position.cpp
...
It's a big file!
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
2008-10-24 21:10:05 +02:00
Marco Costalba
2aebf8eb55
Fix a performance bug in generate_move_if_legal
...
Use the pinned argument in pos.move_is_legal()
No functional change, simply use pos.move_is_legal() as
was meant to be.
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
2008-10-24 21:10:05 +02:00
Marco Costalba
1ac2f50145
Unify pinned and discovery checks code
...
Templates are our friends here. No functional change.
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
2008-10-24 21:10:04 +02:00
Marco Costalba
af59cb1d63
Refactor Position::pinned_pieces() to use templates
...
Also better document this interesting function.
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
2008-10-24 21:10:04 +02:00
Marco Costalba
2f8961beef
movegen: add SERIALIZE_MOVES and hides a bunch of loops
...
Only syntactic sugar, perhaps we should leave as is, anyhow...
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
2008-10-24 21:10:04 +02:00
Marco Costalba
af5743837d
Another generate_piece_moves() micro optimization
...
This time on the for loop.
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
2008-10-24 21:10:04 +02:00
Marco Costalba
5e768e4b0a
Fix another template conversion bug in movegen
...
Hopefully the last one.
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
2008-10-24 21:09:51 +02:00
Marco Costalba
2d867109d9
movegen: prefer (*mlist++) to mlist[n++]
...
Teoretically faster, practically it helps to
removes some more lines.
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
2008-10-23 07:17:04 +02:00
Marco Costalba
b145e99559
Fix a bug in generate_pawn_captures()
...
Introduced in "movegen: Introduce generate_pawn_captures()"
when unifiying black and white functions.
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
2008-10-23 07:17:04 +02:00
Marco Costalba
8f2c1c59eb
Fully templetize pawn move generators
...
A little bit more syntax heavuer but surely faster.
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
2008-10-23 07:17:04 +02:00
Marco Costalba
c40249e9d2
Micro optimize generate_piece_moves()
...
It is a time critical path. The biggest in move generation.
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
2008-10-21 00:10:27 +02:00
Marco Costalba
ce93a202b5
Another Intel warning sqeezed
...
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
2008-10-20 21:57:13 +02:00
Marco Costalba
279ed7ed48
Quiet a warning on Intel compiler
...
Plus usual trailing whitespace noise.
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
2008-10-20 21:55:43 +02:00