URL
https://opencores.org/ocsvn/connect-6/connect-6/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 7 |
Rev 10 |
Line 170... |
Line 170... |
int i;
|
int i;
|
#pragma bitsize i 6
|
#pragma bitsize i 6
|
|
|
//#pragma num_iterations(1,2,2)
|
//#pragma num_iterations(1,2,2)
|
//#pragma unroll
|
//#pragma unroll
|
|
Player player;
|
|
player.depth=1;
|
|
player.branch=1;
|
for(i=myboard.moves_left;i>0;i--){
|
for(i=myboard.moves_left;i>0;i--){
|
//aimoves_free(&moves);
|
//aimoves_free(&moves);
|
move.x=-1;
|
move.x=-1;
|
move.y=-1;
|
move.y=-1;
|
|
|
if (!ai_threats(&myboard,&move_threat)){
|
if (!search(&myboard,&move_threat,&player)){
|
//aimoves_free(&moves);
|
//aimoves_free(&moves);
|
//moves.len=0;
|
//moves.len=0;
|
ai_adjacent(&myboard,&move_adj,current_random);
|
ai_adjacent(&myboard,&move_adj,current_random);
|
move.x=move_adj.x;
|
move.x=move_adj.x;
|
move.y=move_adj.y;
|
move.y=move_adj.y;
|
© copyright 1999-2025
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.