Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Visual Basic for chess program

Author: Ricardo Gibert

Date: 05:16:07 11/12/00

Go up one level in this thread


On November 12, 2000 at 05:16:15, Severi Salminen wrote:

>>My son who is doing year 12 at high school needed help with a program he was
>>writing in visual basic.So I bought myself a book called "Idiots guide to visual
>>Basic".After a bit of reading and experimenting we managed to complete his
>>project satisfactorily.Since then I have written a couple of programs for myself
>>which were Hangman and Tictactoe,I found this very enjoyable and a lot of
>>fun.Now my thoughts turn to writing a chess program (I must be crazy).
>>My question is should I continue with visual basic or should I learn visual
>>c,any comments on the advantages and disadvantages of visual c over visual basic
>>would be appreciated.
>
>Well, first of all, there is no program language visual c, there are only c and
>c++ (which are different). Visual C++ (6.0) is a compiler/IDE product from MS.
>But to your question. Here is a list of benefits from my point of view (I have
>_not_ programmed with Visual Basic ever):
>
>-C has been around for years and you'll find tons of examples for C and C++
>-The most of chess programs have been written in C, so you'll find chess program
>examples also mostly in C (Crafty, TCSP...)
>-C programs can be ported to almost any system, VB programs can not
>-C is fast, maybe faster than Visual Basic
>-C is C!
>
>
>Severi

The advantages you list are all true, but you neglected to list the
disadvantages. C has a steep learning curve and an unforgiving nature that
places a lot responsibility on the programmer. I think he should stick with VB.
If he wants to get really serious later, he can always rewrite it in C, which
will be easier to write if he already has a working version in VB.



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.