Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Design choices in Crafty

Author: Dann Corbit

Date: 01:56:02 06/24/04

Go up one level in this thread


On June 24, 2004 at 03:38:35, José Carlos wrote:
[snip]
>  A possibly better way to do this is to have a struct with all related data,
>for example struct GameData which includes nodes, ply, hply, etc. Then declare a
>global variable of that type and use it everywhere. You keep exacly the same
>easyness as today, you also add variables easily (inside the struct), and if you
>decide to go multithreaded tomorrow, you need only to declare new instances of
>one variable. Additionally, you avoid the problem Dann mentioned.
>
>  José C.

I second this notion.  Collection into structs in C (and classes in C++) has
many benefits.  Orgainization into logical collections is one of them.




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.