Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: I'm Confused. C, C++, C#. Which to Use?

Author: Lieven Clarisse

Date: 04:02:35 11/17/02

Go up one level in this thread


On November 16, 2002 at 17:48:15, Bob Durrett wrote:

>On November 16, 2002 at 16:20:16, Tim Foden wrote:
>
>>On November 16, 2002 at 13:16:33, Bob Durrett wrote:
>>
>>>On November 16, 2002 at 12:29:35, Peter Skinner wrote:
>>>
>>>>On November 16, 2002 at 11:45:27, Bob Durrett wrote:
>>>>
>>>>>
>>>>>I'm Confused.  C, C++, C#.  Which to Use?
>>>>>
>>>>>I have an old Visual C++ compiler which I purchased many ago.  But bulletins
>>>>>posted here seem to favor C, as opposed to C++ as if C is better than C++ for
>>>>>chess engine programming.
>>>>>
>>>>>Still trying to find the best C compiler to use for chess engine design on my
>>>>>Compaq 1 GHz 1GB RAM single-processor PC.
>>>>>
>>>>>Tried to download one but got error message saying NO!
>>>>>
>>>>>Yahoo! seems to find C++ compilers but not C compilers.
>>>>>
>>>>>Sorry for sounding like a child.  : (
>>>>>
>>>>>Bob D.
>>>>
>>>>About 2 to 3 years ago I wanted to write a program as well. Since I had no clue
>>>>where to start I based my engine off the GNUChess 4 source. I was learning C the
>>>>same time so it was nice to have a code to start off of.
>>>>
>>>>After 3 years I would never try to start from scratch. There are two main
>>>>reasons:
>>>>
>>>>1. I am not a very skilled programmer. I can implement things, but I ask a
>>>>million questions like yourself, and there is nothing wrong with that. People
>>>>here are great with answering questions. The answers I have recieved through
>>>>this board and the Crafty mailing list have helped immensely.
>>>>
>>>>2. Time. I don't have much time to program. Starting an engine from scratch
>>>>takes an incrdible amount of time. I would suggest that you look at some sources
>>>>to understand the different structures that Gerbil, Crafty, GnuChess anything
>>>>that has published source code. That helped me quite a bit. Those authors who
>>>>_have_ put the time in to start from scratch give the code out for people to
>>>>learn from and I am grateful.
>>>>
>>>>Personally if you want to write an engine, I would start in C. Most compiler
>>>>that are for C++ are C complilers anyway. I prefer the Visual Studio from MS as
>>>>the MSDN library has some great code examples to look at.
>>>>
>>>>That's my two cents.
>>>>
>>>>Peter.
>>>
>>>Thanks.  The Microsoft Visual Studio's System Requirements seem to exclude
>>>Windows 98, which is what I have.
>>
>>All the Microsoft Visual C/C++ compilers that I have work under Windows 98 (and
>>WinNT 4, Win2K etc).  This includes versions 1.52, 4.2, 5 and 6.  1.52 will only
>>compile to 16 bit code for DOS (I still use it sometimes for DOS utilities).
>>The others can all compile to 32 bit code.
>>
>>Which compiler do you have, do you know?
>>
>>Cheers, Tim.
>
>Version 5.0
>
>Oddly, the box says v.5.0 Upgrade but the manual I found says v.5.0.  It's been
>awhile since I tried, unsuccessfully, to teach myself C++, so I don't remember
>whether or not I had an earlier version.  I changed computers, so it's not on
>this one.  May have been on my old Windows 95 machine which I gave to my son and
>his family.
>
>My wife wants to take the money I would spend on a new computer and use it to
>paint the house.  I don't understand that.  : )
>
>Bob D.

You don't need a good computer to make a good chess program! Listen to your wife
and paint the house (MHO).



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.