Author: Jarkko Pesonen
Date: 10:48:41 09/05/05
Go up one level in this thread
indeed, put this in list.cpp
int list_get_index(const list_t * list, int move) {
int i;
ASSERT(list_is_ok(list));
ASSERT(move_is_ok(move));
for (i = 0; i < list->size; i++) {
if (list->move[i] == move) return i;
}
return -1;
}
and this to list.h
extern int list_get_index(const list_t * list, int move);
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.