Author: Vasik Rajlich
Date: 03:17:17 04/06/04
Go up one level in this thread
On April 05, 2004 at 22:00:30, Andrew Wagner wrote:
>Last week, I was browsing through the archives on here when I saw the
>information about the offline CCC viewer (for probably the 100th time). Since I
>get paid to babysit an empty building, I installed it, downloaded all the
>archives I could find, and have been "catching up". At the moment, I'm unzipping
>all the archives I have left, and thought I would take the time during this
>break to make a few comments about CCC.
>
>Wow. This place is amazing - an absolute wealth of information. Anybody writing
>a chess program would be insane to not be a member here!
>
>Currently, in my reading, CCC is about a year old, and still shaking off some of
>the r.g.c.c. problems. It's amazing to me what a different server this is now!
>There is much less inflammatory junk being thrown around now than there was back
>in those days. This tells me what a fantastic job Steven Schwartz, the founding
>group, and all the moderators have done and are doing. Major kudos to you guys!
>
>I still have to shake my head when I see posts from Dr. Hyatt, about stuff he
>was doing when I was just a twinkle in my daddy's eye. It's amazing that he and
>others who have been around as long are still willing to share their wisdom and
>experience. Kudos also to them!
>
>Long live CCC!
Agreed.
Cut & pasted below is an application you can use to create a little CCC book for
yourself, it filters according to author & content. (For this you need the
archives from Bob's FTP site.) Great for traveling ...
Computer chess has a lot of slightly counterintuitive things, which take some
time to get used to.
Also, many of your "great ideas" have been tried by others, in many different
forms.
Cheers,
Vas
// CCC_Print.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include "Afx.h"
#include "Windows.h"
void CheckFile
( FILE *of,
CString path,
CString filename
)
{
CString full_name = path + _T ("\\") + filename;
FILE *text_file;
bool author_good = false;
bool content_good = false;
text_file = fopen (full_name, "r");
while (! feof (text_file))
{
TCHAR token [4096];
fscanf (text_file, "%s", token);
if (!_tcsicmp (token, "From:"))
{
TCHAR name1 [4096];
TCHAR name2 [4096];
fscanf (text_file, "%s", name1);
fscanf (text_file, "%s", name2);
if ((!_tcsicmp (name1, _T ("Christophe"))) &&
(!_tcsicmp (name2, _T ("Theron"))))
author_good = true;
if ((!_tcsicmp (name1, _T ("Hyatt"))) &&
(!_tcsicmp (name2, _T ("Robert"))))
author_good = true;
if ((!_tcsicmp (name1, _T ("Hyatt"))) &&
(!_tcsicmp (name2, _T ("Bob"))))
author_good = true;
if ((!_tcsicmp (name1, _T ("Don"))) &&
(!_tcsicmp (name2, _T ("Dailey"))))
author_good = true;
if ((!_tcsicmp (name1, _T ("Chris"))) &&
(!_tcsicmp (name2, _T ("Whittington"))))
author_good = true;
if ((!_tcsicmp (name1, _T ("Amir"))) &&
(!_tcsicmp (name2, _T ("Ban"))))
author_good = true;
if ((!_tcsicmp (name1, _T ("Vincent"))) &&
(!_tcsicmp (name2, _T ("Diepeveen"))))
author_good = true;
if ((!_tcsicmp (name1, _T ("Bruce"))) &&
(!_tcsicmp (name2, _T ("Moreland"))))
author_good = true;
if ((!_tcsicmp (name1, _T ("Bella"))) &&
(!_tcsicmp (name2, _T ("Freud"))))
author_good = true;
if ((!_tcsicmp (name1, _T ("Omid"))) &&
(!_tcsicmp (name2, _T ("David"))))
author_good = true;
if ((!_tcsicmp (name1, _T ("Ed"))) &&
(!_tcsicmp (name2, _T ("Shroeder"))))
author_good = true;
if ((!_tcsicmp (name1, _T ("Gian-Carlo"))) &&
(!_tcsicmp (name2, _T ("Pascutto"))))
author_good = true;
if ((!_tcsicmp (name1, _T ("Ernst"))) &&
(!_tcsicmp (name2, _T ("A."))))
author_good = true;
if ((!_tcsicmp (name1, _T ("Ernst"))) &&
(!_tcsicmp (name2, _T ("Heinz"))))
author_good = true;
if ((!_tcsicmp (name1, _T ("Jay"))) &&
(!_tcsicmp (name2, _T ("Scott"))))
author_good = true;
}
if (!_tcsicmp (token, "search"))
content_good = true;
if (!_tcsicmp (token, "pruning"))
content_good = true;
if (!_tcsicmp (token, "evaluation"))
content_good = true;
if (!_tcsicmp (token, "eval"))
content_good = true;
if (!_tcsicmp (token, "null"))
content_good = true;
if (!_tcsicmp (token, "nullmove"))
content_good = true;
if (!_tcsicmp (token, "extension"))
content_good = true;
if (!_tcsicmp (token, "extensions"))
content_good = true;
if (!_tcsicmp (token, "reduction"))
content_good = true;
if (!_tcsicmp (token, "reductions"))
content_good = true;
if (!_tcsicmp (token, "selective"))
content_good = true;
if (!_tcsicmp (token, "mtd"))
content_good = true;
if (!_tcsicmp (token, "search"))
content_good = true;
if (!_tcsicmp (token, "search"))
content_good = true;
if (!_tcsicmp (token, "search"))
content_good = true;
if (!_tcsicmp (token, "search"))
content_good = true;
}
fclose (text_file);
if ((!author_good) || (!content_good))
return;
text_file = fopen (full_name, "r");
while (! feof (text_file))
{
TCHAR one_char;
fscanf (text_file, "%c", &one_char);
fprintf (of, "%c", one_char);
}
fclose (text_file);
fprintf (of, "\n\n");
}
int _tmain(int argc, _TCHAR* argv[])
{
CString directories [500];
int cur_dir = 0;
CString home_dir = _T ("D:\\Personal Stuff\\CCC\\");
CString strPath = home_dir + _T ("*");
HANDLE hFind;
WIN32_FIND_DATA fd;
if ((hFind = ::FindFirstFile (strPath, &fd)) != INVALID_HANDLE_VALUE)
{
if (fd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)
if (fd.cFileName [0] != '.')
{
directories [cur_dir] = fd.cFileName;
printf ("found: %s\n", directories [cur_dir]);
cur_dir ++;
}
while (::FindNextFile (hFind, &fd))
if (fd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)
if (fd.cFileName [0] != '.')
{
directories [cur_dir] = fd.cFileName;
printf ("found: %s\n", directories [cur_dir]);
cur_dir ++;
}
}
FILE *of;
CString of_name = home_dir + _T ("all.txt");
of = fopen (of_name, "w");
for (int i=0; i<cur_dir; i++)
{
TCHAR full_path_buffer [4096];
_tcscpy (full_path_buffer, home_dir);
_tcscat (full_path_buffer, directories [i]);
CString full_path = full_path_buffer;
CString search_path = full_path + _T ("\\*");
if ((hFind = ::FindFirstFile (search_path, &fd)) != INVALID_HANDLE_VALUE)
{
if (fd.cFileName [0] != '.')
CheckFile (of, full_path, fd.cFileName);
while (::FindNextFile (hFind, &fd))
if (fd.cFileName [0] != '.')
CheckFile (of, full_path, fd.cFileName);
}
}
fclose (of);
return 0;
}
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.