It's stoopid, I know. But, it's been done in Javascript. I would like to see an obviously very basic script that searches 3 or 4 ply, with simple piece value eval. A minimax and no alpha-beta, etc.
Anybody out there who could help?
The world is crying out for a BASH chess engine.
New Year's resolution: a chess engine written in BASH script
Moderators: hgm, Rebel, chrisw
-
- Posts: 342
- Joined: Tue Jan 19, 2010 2:05 am
-
- Posts: 6442
- Joined: Tue Jan 09, 2007 12:31 am
- Location: PA USA
- Full name: Louis Zulli
Re: New Year's resolution: a chess engine written in BASH sc
Will you call it BAnSHee? Or maybe just BASHer?benstoker wrote:It's stoopid, I know. But, it's been done in Javascript. I would like to see an obviously very basic script that searches 3 or 4 ply, with simple piece value eval. A minimax and no alpha-beta, etc.
Anybody out there who could help?
The world is crying out for a BASH chess engine.
-
- Posts: 6442
- Joined: Tue Jan 09, 2007 12:31 am
- Location: PA USA
- Full name: Louis Zulli
Re: New Year's resolution: a chess engine written in BASH sc
Actually, since it will take a beating, maybe BASHee is best.zullil wrote:
Will you call it BAnSHee? Or maybe just BASHer?
-
- Posts: 342
- Joined: Tue Jan 19, 2010 2:05 am
Re: New Year's resolution: a chess engine written in BASH sc
zullil wrote:Actually, since it will take a beating, maybe BASHee is best.zullil wrote:
Will you call it BAnSHee? Or maybe just BASHer?
"BASHee" it is.
But, you are incorrect about it "taking a beating". I plan to ask that it be run on the 128 bit Toby Tal 'server'.
-
- Posts: 27790
- Joined: Fri Mar 10, 2006 10:06 am
- Location: Amsterdam
- Full name: H G Muller
Re: New Year's resolution: a chess engine written in BASH sc
Well, it can't be that difficult to translate micro-Max 1.6 into a bash script? Only bout 100 lines...
-
- Posts: 3196
- Joined: Fri May 26, 2006 3:00 am
- Location: WY, USA
- Full name: Michael Sherwin
Re: New Year's resolution: a chess engine written in BASH sc
Haskell would be much more interesting!hgm wrote:Well, it can't be that difficult to translate micro-Max 1.6 into a bash script? Only bout 100 lines...
http://hackage.haskell.org/platform/
If you are on a sidewalk and the covid goes beep beep
Just step aside or you might have a bit of heat
Covid covid runs through the town all day
Can the people ever change their ways
Sherwin the covid's after you
Sherwin if it catches you you're through
Just step aside or you might have a bit of heat
Covid covid runs through the town all day
Can the people ever change their ways
Sherwin the covid's after you
Sherwin if it catches you you're through
-
- Posts: 342
- Joined: Tue Jan 19, 2010 2:05 am
Re: New Year's resolution: a chess engine written in BASH sc
But can you do C pointers in BASH? Too advanced for BASH, non?hgm wrote:Well, it can't be that difficult to translate micro-Max 1.6 into a bash script? Only bout 100 lines...
-
- Posts: 5106
- Joined: Tue Apr 29, 2008 4:27 pm
Re: New Year's resolution: a chess engine written in BASH sc
I took quite a bit of time, but I did it! And it plays pretty strong too!benstoker wrote:It's stoopid, I know. But, it's been done in Javascript. I would like to see an obviously very basic script that searches 3 or 4 ply, with simple piece value eval. A minimax and no alpha-beta, etc.
Anybody out there who could help?
The world is crying out for a BASH chess engine.
Here is my script:
Code: Select all
-------[ snip ]-------
#!/bin/bash
/home/drd/bin/komodo
--------[snip]--------
-
- Posts: 6442
- Joined: Tue Jan 09, 2007 12:31 am
- Location: PA USA
- Full name: Louis Zulli
Re: New Year's resolution: a chess engine written in BASH sc
Looks like a clone to me.Don wrote:I took quite a bit of time, but I did it! And it plays pretty strong too!benstoker wrote:It's stoopid, I know. But, it's been done in Javascript. I would like to see an obviously very basic script that searches 3 or 4 ply, with simple piece value eval. A minimax and no alpha-beta, etc.
Anybody out there who could help?
The world is crying out for a BASH chess engine.
Here is my script:
Code: Select all
-------[ snip ]------- #!/bin/bash /home/drd/bin/komodo --------[snip]--------
-
- Posts: 12540
- Joined: Wed Mar 08, 2006 8:57 pm
- Location: Redmond, WA USA
Re: New Year's resolution: a chess engine written in BASH sc
Nope. That's a clown.zullil wrote:Looks like a clone to me.Don wrote:I took quite a bit of time, but I did it! And it plays pretty strong too!benstoker wrote:It's stoopid, I know. But, it's been done in Javascript. I would like to see an obviously very basic script that searches 3 or 4 ply, with simple piece value eval. A minimax and no alpha-beta, etc.
Anybody out there who could help?
The world is crying out for a BASH chess engine.
Here is my script:
Code: Select all
-------[ snip ]------- #!/bin/bash /home/drd/bin/komodo --------[snip]--------