OpenCores
URL https://opencores.org/ocsvn/connect-6/connect-6/trunk

Subversion Repositories connect-6

[/] [connect-6/] [trunk/] [BUILD_SCC/] [synth_src/] [shared.h] - Diff between revs 7 and 10

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 7 Rev 10
Line 29... Line 29...
//#ifndef __G_TYPES_H__
//#ifndef __G_TYPES_H__
typedef unsigned int gboolean;
typedef unsigned int gboolean;
#pragma bitsize gboolean 1
#pragma bitsize gboolean 1
typedef int gsize;
typedef int gsize;
//#endif
//#endif
 
#include <limits.h>
#include "pico.h"
#include "pico.h"
 
 
 
 
/*
/*
 *      Options
 *      Options
Line 400... Line 401...
//////////
//////////
///////////*
///////////*
////////// *      AI helper functions
////////// *      AI helper functions
////////// */
////////// */
//////////
//////////
//////////extern int ai_stop;
extern int ai_stop;
///////////* If this variable is non-zero, the system is trying to stop the AI thread
///////////* If this variable is non-zero, the system is trying to stop the AI thread
//////////   and your AI should exit. Do not set this yourself. */
//////////   and your AI should exit. Do not set this yourself. */
//////////
//////////
//////////typedef AIMoves *(*AIFunc)(const Board *b);
//////////typedef AIMoves *(*AIFunc)(const Board *b);
///////////* AIs are defined as functions that output an unsorted, weighted list of board
///////////* AIs are defined as functions that output an unsorted, weighted list of board
Line 456... Line 457...
///////////
///////////
///////////AIMoves *ai_utility(const Board *b);
///////////AIMoves *ai_utility(const Board *b);
///////////AIMoves *ai_dfs_utility(const Board *b);
///////////AIMoves *ai_dfs_utility(const Board *b);
////////////* Utility function */
////////////* Utility function */
///////////
///////////
/*AIMoves **/int ai_threats(Board *board,AIMove *move);
/*AIMoves **/int ai_threats(Board *board,AIMoves *moves,unsigned int *index);
AIMoves *ai_priority(const Board *b);
AIMoves *ai_priority(const Board *b);
/* Multi-level threats */
/* Multi-level threats */
 
 
 
 
 
 
Line 475... Line 476...
//extern "C" void pico_stream_output_queue(AIMove);
//extern "C" void pico_stream_output_queue(AIMove);
//extern "C" AIMove pico_ips_fifo_read_queue();
//extern "C" AIMove pico_ips_fifo_read_queue();
//extern "C" void pico_ips_fifo_write_queue(AIMove);
//extern "C" void pico_ips_fifo_write_queue(AIMove);
//extern int id;
//extern int id;
//extern int ready; 
//extern int ready; 
 
typedef struct {
 
        PLAYER ai;
 
        //SEARCH search;
 
        int depth, branch, cache, tss;
 
} Player;
 
/*AIMoves **/int search(const Board *board,AIMove *move, Player *player);
#endif
#endif
 
 
 No newline at end of file
 No newline at end of file

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.