How to make the engine extremely aggressive or defensive ?

Discussion of chess software programming and technical issues.

Moderators: hgm, Rebel, chrisw

MahmoudUthman
Posts: 234
Joined: Sat Jan 17, 2015 11:54 pm

How to make the engine extremely aggressive or defensive ?

Post by MahmoudUthman »

Especially against humans ?
Dann Corbit
Posts: 12541
Joined: Wed Mar 08, 2006 8:57 pm
Location: Redmond, WA USA

Re: How to make the engine extremely aggressive or defensive

Post by Dann Corbit »

MahmoudUthman wrote:Especially against humans ?
Castle opposite and pawn storm.
Add bonus to keep the pawn formations open.
Add bonus to trade when equal.
Raise contempt to a high value.
Taking ideas is not a vice, it is a virtue. We have another word for this. It is called learning.
But sharing ideas is an even greater virtue. We have another word for this. It is called teaching.
jdart
Posts: 4367
Joined: Fri Mar 10, 2006 5:23 am
Location: http://www.arasanchess.org

Re: How to make the engine extremely aggressive or defensive

Post by jdart »

My king safety score is based primarily on how well-protected the King is by pawns (King cover), and how many/what types of pieces are attacking the king.

These can be pretty easily tuned up or down. Right now they are set so that the program doesn't usually sacrifice a piece to open up the opposing King or to generate an attack, unless it looks like there will be substantial compensation. But if you give more reward for those factors, it will start to make sacrifices and in that respect play more aggressively.

--Jon
Vinvin
Posts: 5228
Joined: Thu Mar 09, 2006 9:40 am
Full name: Vincent Lejeune

Re: How to make the engine extremely aggressive or defensive

Post by Vinvin »

Dann Corbit wrote:
MahmoudUthman wrote:Especially against humans ?
Castle opposite and pawn storm.
Add bonus to keep the pawn formations open.
Add bonus to trade when equal.
Raise contempt to a high value.
I understand the 3 other but not this one : "Add bonus to trade when equal.".
From my experience it's better to hold pieces to build an attack. Trading pieces would simplify the position.
Daniel Anulliero
Posts: 759
Joined: Fri Jan 04, 2013 4:55 pm
Location: Nice

Re: How to make the engine extremely aggressive or defensive

Post by Daniel Anulliero »

Dann Corbit wrote:
MahmoudUthman wrote:Especially against humans ?

Add bonus to trade when equal
.
Don't you mean " trade when ahead In material instead" ?
Isa download :
Vinvin
Posts: 5228
Joined: Thu Mar 09, 2006 9:40 am
Full name: Vincent Lejeune

Re: How to make the engine extremely aggressive or defensive

Post by Vinvin »

Daniel Anulliero wrote:
Dann Corbit wrote:
MahmoudUthman wrote:Especially against humans ?

Add bonus to trade when equal
.
Don't you mean " trade when ahead In material instead" ?
The general rule in chess is :
"Trade pieces but not pawns when ahead in material"
and the correlation : "Trade pawns but not pieces when behind in material".
The idea is to reach a drawish endgame.