Exemplo n.º 1
0
void brain_init()
{
  if(width<5 || height < 5){
    pipeOut("ERROR Invalid size of the board");
    return;
  }
  if(width > MAX_BOARD_SIZE || height>MAX_BOARD_SIZE){
    pipeOut("ERROR Maximal board size is %d", MAX_BOARD_SIZE);
    return;
  }
  brain_restart();
}
Exemplo n.º 2
0
void brain_init()
{
  if(width<5 || height < 5){
    pipeOut("ERROR Invalid size of the board");
    return;
  }
  if(width > MAX_BOARD_WIDTH){
    pipeOut("ERROR Maximal board width is %d", MAX_BOARD_WIDTH);
    return;
  }
  if(height > MAX_BOARD_HEIGHT){
    pipeOut("ERROR Maximal board height is %d", MAX_BOARD_HEIGHT);
    return;
  }
  brain_restart();
}