At the same time, nuking "#ifdef DYNAMIC_ZNODES" (dead code).
#endif
unsigned i;
- long cnt, rate, t1, t2;
+ long cnt, t1, t2;
#ifdef HAVE_GETTIMEOFDAY
struct timeval tv;
else
et = 1;
- rate = (((et) ? ((cnt * 100) / et) : 0));
-
-#ifdef DYNAMIC_ZNODES
- if (rate > 0)
- znodes = rate;
-#endif
-
- if (NOT_CURSES)
- printf(CP[91], cnt, rate);
- else
- ShowNodeCnt(cnt);
+ ShowNodeCnt(cnt);
}
TestPSpeed(short(*f) (short side), unsigned j)
{
short i;
- long cnt, rate, t1, t2;
+ long cnt, t1, t2;
#ifdef HAVE_GETTIMEOFDAY
struct timeval tv;
#endif
else
et = 1;
- rate = (et) ? ((cnt * 100) / et) : 0;
-
- /* printf("Nodes= %ld Nodes/sec= %ld\n", cnt, rate); */
-
- if (NOT_CURSES)
- printf(CP[91], cnt, rate);
- else
- ShowNodeCnt(cnt);
+ ShowNodeCnt(cnt);
}
void
-ShowNodeCnt(long NodeCnt)
+Curses_ShowNodeCnt(long NodeCnt)
{
gotoXY(TAB, 22);
/* printw(CP[90], NodeCnt, (et > 100) ? NodeCnt / (et / 100) : 0); */
void Curses_ExitShogi(void);
void Curses_GiveHint(void);
void Curses_Initialize(void);
+void Curses_ShowNodeCnt(long NodeCnt);
void Curses_OutputMove(void);
void Curses_SearchStartStuff(short side);
void Curses_SelectLevel(char *sx);
void ClearMessage(void);
void DrawPiece(short sq);
void ShowHeader(void);
-void ShowNodeCnt(long NodeCnt);
void ShowPlayers(void);
void ShowPrompt(void);
void ShowScore(short score);
DISPLAY_VOIDFUNC(ExitShogi)
DISPLAY_VOIDFUNC(GiveHint)
DISPLAY_VOIDFUNC(Initialize)
+DISPLAY_FUNC(ShowNodeCnt, (long NodeCnt), (NodeCnt))
DISPLAY_VOIDFUNC(OutputMove)
DISPLAY_VOIDFUNC(SetContempt)
DISPLAY_FUNC(SearchStartStuff, (short side), (side))
extern void ExitShogi(void);
extern void GiveHint(void);
extern void Initialize(void);
+extern void ShowNodeCnt(long NodeCnt);
extern void OutputMove(void);
extern void SetContempt(void);
extern void SearchStartStuff(short side);
void
+Raw_ShowNodeCnt(long NodeCnt)
+{
+ printf(CP[91],
+ NodeCnt, (((et) ? ((NodeCnt * 100) / et) : 0)));
+}
+
+
+void
Raw_ShowPatternCount(short side, short n)
{
if (flag.post)
void Raw_ExitShogi(void);
void Raw_GiveHint(void);
void Raw_Initialize(void);
+void Raw_ShowNodeCnt(long NodeCnt);
void Raw_OutputMove(void);
void Raw_SearchStartStuff(short side);
void Raw_SelectLevel(char *sx);