Author: Pat King
Date: 05:51:18 06/09/02
Go up one level in this thread
On June 09, 2002 at 04:21:22, Russell Reagan wrote: >On June 08, 2002 at 23:04:55, Scott Gasch wrote: > >>Yes my #1 complaint about C++ is a weakness with myself -- not the language. I >>don't know exactly how classes are layed out in memory... I guess the data and >>some kind of table of function pointers. > >I struggled with this also. Then I realized that I would never look at the ASM >code anyway and I felt a great feeling of peace come over me :) > Amen, brother. >>But especially when we get into >>inheritance and polymorphism... I just can't follow the mess. > >I don't know why you would need such things for a chess program, but stranger >things have happened. Not using them seems a waste to me... most of the work of move generation, validation, and execution is divided up in my piece heirarchy. Polymorphism is a great way to reduce complexity (ie if/switch statements), making testing each class pretty straightforward. > >Russell Pat
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.