I get this
position startpos moves c2c4
./chess: line 225: ${MOVING_PIECE,,}: bad substitution
Moderators: hgm, Rebel, chrisw
position startpos moves c2c4
./chess: line 225: ${MOVING_PIECE,,}: bad substitution
It's probably the version of bash you are using.Michel wrote:Sadly the latest version you posted does something strange.
I get this
position startpos moves c2c4
./chess: line 225: ${MOVING_PIECE,,}: bad substitution
Sorry, I'm unable to reproduce this. (Edit: What Don said )Michel wrote:Sadly the latest version you posted does something strange.
I get this
position startpos moves c2c4
./chess: line 225: ${MOVING_PIECE,,}: bad substitution
Code: Select all
((SCORE += (RANDOM % 199) - 99))
Code: Select all
13. Bxh6 gxh6 14. e4 Bg6 15. Qxf6 1-0
I ran this on a 128 bit 'server' and it kicked the pants off of Rybka 3 on a standard multicore. Will soon have access to a 256 bit 'server'. Can't wait to see. Of course, I had to set the depth to 120.UncombedCoconut wrote:I need to let go of this, but the bugs are embarrassing.
I have an update here.
Bugfix: moves from a8 weren't generated
Bugfix: knights could jump between board edges
Bugfix: slider pieces couldn't move past the e.p. target square
Bugfix: promotions weren't handled
Bugfix: some moves were inappropriately interpreted as castling
Bugfix: randomness was too large (I even wrote it right before posting. Whoops.)
BTW, I watched this novelty engine take out an unwary opponent last night. Thank you, Michel. I thought I'd never see that happen! The engine even faked (unsound but effective) tactical thought well enough to scare the dude away.
[d] 2kr3r/ppp2ppp/3b1q1n/5b2/Pn1p4/N2P1Q1P/1P2PPP1/R1B1KBNR w KQ - 3 13
This human has played 12. ... Nh6? and suffersCode: Select all
13. Bxh6 gxh6 14. e4 Bg6 15. Qxf6 1-0
One other thing. This is not as useless as you imply. This is a pedagogical chess engine. In my view, it's the best one because it's so absolutely basic. Extra comments to explain what's going on would be the final selling point.UncombedCoconut wrote:I need to let go of this, but the bugs are embarrassing.
I have an update here.
Bugfix: moves from a8 weren't generated
Bugfix: knights could jump between board edges
Bugfix: slider pieces couldn't move past the e.p. target square
Bugfix: promotions weren't handled
Bugfix: some moves were inappropriately interpreted as castling
Bugfix: randomness was too large (I even wrote it right before posting. Whoops.)
BTW, I watched this novelty engine take out an unwary opponent last night. Thank you, Michel. I thought I'd never see that happen! The engine even faked (unsound but effective) tactical thought well enough to scare the dude away.
[d] 2kr3r/ppp2ppp/3b1q1n/5b2/Pn1p4/N2P1Q1P/1P2PPP1/R1B1KBNR w KQ - 3 13
This human has played 12. ... Nh6? and suffersCode: Select all
13. Bxh6 gxh6 14. e4 Bg6 15. Qxf6 1-0