SHARE
TWEET

04

a guest May 23rd, 2019 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if(isGameOver(board, player)) {
  2.             if (board.winner(player)) {
  3.                 return (1 + board.nFreeFields());
  4.             }
  5.             if(!board.winner(player)){
  6.  
  7.                  if(!board.winner(player)&& board.nFreeFields() == 0){
  8.                      return 0;
  9.                  }
  10.                  return (-1-board.nFreeFields());
  11.             }
  12.  
  13.         }
  14.         return 0;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top