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

Subversion Repositories connect-6

[/] [connect-6/] [trunk/] [BUILD_SCC/] [synth_src/] [main.cpp.base] - Diff between revs 15 and 16

Show entire file | Details | Blame | View Log

Rev 15 Rev 16
Line 217... Line 217...
 
 
        // AI makes a move
        // AI makes a move
        connect6ai(board,AI_colour,move);
        connect6ai(board,AI_colour,move);
        movecount++;
        movecount++;
        cout<<"AI MOVE: "<
        cout<<"AI MOVE: "<
        if(movecount >=20) return 0 ; //reducing length of simulation
        //if(movecount >=20) return 0 ; //reducing length of simulation
        winning_colour = check_for_win(board);
        winning_colour = check_for_win(board);
        if (winning_colour == AI_colour){
        if (winning_colour == AI_colour){
            cout<<"AI has won! " << movecount << " moves " << "Exiting."<
            cout<<"AI has won! " << movecount << " moves " << "Exiting."<
            break;
            break;
        } else if (winning_colour == FPGA_colour){
        } else if (winning_colour == FPGA_colour){

powered by: WebSVN 2.1.0

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