ChessUSA.com TalkChess.com
Hosted by Your Move Chess & Games
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

New Year's resolution: a chess engine written in BASH script
Post new topic    TalkChess.com Forum Index -> Computer Chess Club: Programming and Technical Discussions Flat
View previous topic :: View next topic  
Author Message
Matt Shoemaker



Joined: 20 Mar 2009
Posts: 716

PostPost subject: Re: New Year's resolution: a chess engine written in BASH sc    Posted: Sun Feb 14, 2010 8:24 am Reply to topic Reply with quote

Karatorian wrote:
smcracraft wrote:
Perl and Python would be interesting choices... at the end of your
exercise (whatever language), you will know that language better...

When I first started to learn about chess programming, I wrote about half a chess (variant) engine in Python. It had move generation and a basic (terminal) user interface, but no search.

Also, my current project, a shogi engine, uses a bunch of precomputed tables for stuff like king and general moves that are generated from python code.

I've actually been thinking about writing a full fledged engine in Python. However, it wouldn't neccessarily be a chess engine per say. Rather the idea is to create a generic engine of sorts that can be used to impliment chess variants. Most chess variants have no engine at all, or just a Zillions of Games implementation, which is sad.

If you wrote a chess engine in perl, I don't think just plain old perl would be enough. I think you'd have to use obfuscated perl. Of course, if you did, you could probably be a solid contender in the obfuscated perl contest.

If you where to port mini-max to a shell, wouldn't csh be the logical choice?

If working from scratch, remeber, there's pretty much no such thing a pure shell (in practice). Properly implemented, you'd handle the hard bits with sed and awk, which would make the shell code seem tame by comparison.


Perl code can be just as readable as C if a programmer chooses to make it that way. It's just that most people don't write perl that way because it's usually a once-off or short enough they just want to make it work and forget about it.
Back to top
View user's profile Send private message
Display posts from previous:   
Subject Author Date/Time
New Year's resolution: a chess engine written in BASH script Ben Stoker Fri Jan 22, 2010 4:16 pm
      Re: New Year's resolution: a chess engine written in BASH sc Louis Zulli Fri Jan 22, 2010 5:40 pm
            Re: New Year's resolution: a chess engine written in BASH sc Louis Zulli Fri Jan 22, 2010 5:44 pm
                  Re: New Year's resolution: a chess engine written in BASH sc Ben Stoker Fri Jan 22, 2010 6:50 pm
      Re: New Year's resolution: a chess engine written in BASH sc H.G.Muller Fri Jan 22, 2010 6:57 pm
            Re: New Year's resolution: a chess engine written in BASH sc Michael Sherwin Fri Jan 22, 2010 7:12 pm
            Re: New Year's resolution: a chess engine written in BASH sc Ben Stoker Fri Jan 22, 2010 7:48 pm
                  Re: New Year's resolution: a chess engine written in BASH sc H.G.Muller Sat Jan 23, 2010 10:24 am
      Re: New Year's resolution: a chess engine written in BASH sc Don Dailey Fri Jan 22, 2010 9:46 pm
            Re: New Year's resolution: a chess engine written in BASH sc Louis Zulli Fri Jan 22, 2010 10:04 pm
                  Re: New Year's resolution: a chess engine written in BASH sc Dann Corbit Fri Jan 22, 2010 10:06 pm
      Re: New Year's resolution: a chess engine written in BASH sc Robert Hyatt Sat Jan 23, 2010 2:37 am
            Re: New Year's resolution: a chess engine written in BASH sc Greg Simpson Sat Jan 23, 2010 6:14 pm
            Re: New Year's resolution: a chess engine written in BASH sc Stuart Cracraft Wed Feb 03, 2010 4:00 am
      Re: New Year's resolution: a chess engine written in BASH sc Gregory Strong Sat Jan 23, 2010 8:17 pm
            Re: New Year's resolution: a chess engine written in BASH sc Edmund Moshammer Sat Jan 23, 2010 9:37 pm
                  Re: New Year's resolution: a chess engine written in BASH sc Gregory Strong Sat Jan 23, 2010 11:31 pm
                        Re: New Year's resolution: a chess engine written in BASH sc Edmund Moshammer Sun Jan 24, 2010 5:59 am
                              Re: New Year's resolution: a chess engine written in BASH sc Gregory Strong Sun Jan 24, 2010 5:29 pm
                              Re: New Year's resolution: a chess engine written in BASH sc Ian Osgood Fri Jan 29, 2010 8:46 am
      Re: New Year's resolution: a chess engine written in BASH sc Stuart Cracraft Sat Jan 23, 2010 9:00 pm
            Re: New Year's resolution: a chess engine written in BASH sc Matt Shoemaker Sun Jan 24, 2010 12:47 am
                  Re: New Year's resolution: a chess engine written in BASH sc Stuart Cracraft Wed Feb 03, 2010 3:56 am
                  Re: New Year's resolution: a chess engine written in BASH sc Don Dailey Thu Feb 04, 2010 2:45 pm
                        Re: New Year's resolution: a chess engine written in BASH sc Tord Romstad Thu Feb 04, 2010 7:10 pm
                              Re: New Year's resolution: a chess engine written in BASH sc Don Dailey Thu Feb 04, 2010 7:38 pm
                              Re: New Year's resolution: a chess engine written in BASH sc Matthew Hull Thu Feb 04, 2010 8:58 pm
                                    Re: New Year's resolution: a chess engine written in BASH sc William H. Rogers Fri Feb 05, 2010 12:47 am
                                          Re: New Year's resolution: a chess engine written in BASH sc Don Dailey Fri Feb 05, 2010 12:53 am
                                          Re: New Year's resolution: a chess engine written in BASH sc Matt Shoemaker Fri Feb 05, 2010 3:48 am
                                                Re: New Year's resolution: a chess engine written in BASH sc William H. Rogers Sat Feb 06, 2010 2:14 am
                                                      Re: New Year's resolution: a chess engine written in BASH sc Don Dailey Sat Feb 06, 2010 2:54 pm
                                                      Re: New Year's resolution: a chess engine written in BASH sc Don Dailey Sat Feb 06, 2010 3:23 pm
                                                            Re: New Year's resolution: a chess engine written in BASH sc Luca Hemmerich Sun Feb 07, 2010 6:50 pm
                                                                  Re: New Year's resolution: a chess engine written in BASH sc Justin Blanchard Sun Feb 07, 2010 11:10 pm
            Re: New Year's resolution: a chess engine written in BASH sc Karatorian Sun Feb 14, 2010 4:49 am
                  Re: New Year's resolution: a chess engine written in BASH sc Matt Shoemaker Sun Feb 14, 2010 8:24 am
                  Re: New Year's resolution: a chess engine written in BASH sc Aaron Becker Sun Feb 14, 2010 10:44 am
      Re: New Year's resolution: a chess engine written in BASH sc Dann Corbit Mon Jan 25, 2010 7:45 pm
      Re: New Year's resolution: a chess engine written in BASH sc Justin Blanchard Sat Jan 30, 2010 12:51 am
            Re: New Year's resolution: a chess engine written in BASH sc Justin Blanchard Sun Jan 31, 2010 9:43 am
                  Re: New Year's resolution: a chess engine written in BASH sc Don Dailey Sun Jan 31, 2010 1:50 pm
                        Re: New Year's resolution: a chess engine written in BASH sc Justin Blanchard Sun Jan 31, 2010 10:42 pm
                              Re: New Year's resolution: a chess engine written in BASH sc Michel Van den Bergh Sun Jan 31, 2010 11:09 pm
                                    Re: New Year's resolution: a chess engine written in BASH sc J. Wesley Cleveland Sun Jan 31, 2010 11:19 pm
                                    Re: New Year's resolution: a chess engine written in BASH sc Justin Blanchard Sun Jan 31, 2010 11:36 pm
                                          Re: New Year's resolution: a chess engine written in BASH sc Matt Shoemaker Mon Feb 01, 2010 12:22 am
                                          Re: New Year's resolution: a chess engine written in BASH sc Michel Van den Bergh Mon Feb 01, 2010 12:35 am
                                                Re: New Year's resolution: a chess engine written in BASH sc Don Dailey Mon Feb 01, 2010 12:49 am
                                                Re: New Year's resolution: a chess engine written in BASH sc Justin Blanchard Mon Feb 01, 2010 12:51 am
                                                      Re: New Year's resolution: a chess engine written in BASH sc Michel Van den Bergh Mon Feb 01, 2010 1:01 am
                                                            Re: New Year's resolution: a chess engine written in BASH sc Justin Blanchard Mon Feb 01, 2010 1:05 am
                                                                  Re: New Year's resolution: a chess engine written in BASH sc Justin Blanchard Mon Feb 01, 2010 1:40 am
                                                                        Re: New Year's resolution: a chess engine written in BASH sc Michel Van den Bergh Mon Feb 01, 2010 1:56 am
                                                                              Re: New Year's resolution: a chess engine written in BASH sc Justin Blanchard Tue Feb 02, 2010 12:24 pm
                                                                                    Re: New Year's resolution: a chess engine written in BASH sc Ben Stoker Tue Feb 02, 2010 8:05 pm
                                                                                          Re: New Year's resolution: a chess engine written in BASH sc Justin Blanchard Wed Feb 03, 2010 1:24 am
                                                                                    Re: New Year's resolution: a chess engine written in BASH sc Ben Stoker Tue Feb 02, 2010 8:08 pm
                              Re: New Year's resolution: a chess engine written in BASH sc Michel Van den Bergh Wed Feb 03, 2010 10:39 am
                                    Re: New Year's resolution: a chess engine written in BASH sc Justin Blanchard Wed Feb 03, 2010 10:49 am
                                          Re: New Year's resolution: a chess engine written in BASH sc Don Dailey Wed Feb 03, 2010 1:42 pm
                                                Re: New Year's resolution: a chess engine written in BASH sc Ben Stoker Wed Feb 03, 2010 2:30 pm
                                                Re: New Year's resolution: a chess engine written in BASH sc Justin Blanchard Wed Feb 03, 2010 11:36 pm
                                                      Re: New Year's resolution: a chess engine written in BASH sc Michel Van den Bergh Thu Feb 04, 2010 8:16 am
      Re: New Year's resolution: a chess engine written in BASH sc Fred Hamilton Thu Feb 04, 2010 3:33 pm
            Re: New Year's resolution: a chess engine written in BASH sc Edmund Moshammer Thu Feb 04, 2010 3:59 pm
                  Re: New Year's resolution: a chess engine written in BASH sc Fred Hamilton Thu Feb 04, 2010 4:04 pm
                        Re: New Year's resolution: a chess engine written in BASH sc Edmund Moshammer Thu Feb 04, 2010 4:26 pm
Post new topic    TalkChess.com Forum Index -> Computer Chess Club: Programming and Technical Discussions

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Powered by phpBB © 2001, 2005 phpBB Group
Enhanced with Moby Threads