text: #include <stdint.h>
  #include <stdlib.h>
  #include <assert.h>
  #include <stdio.h>
  #include "gamma.h"
  #include <stdbool.h>
  #include <string.h>
  
  
  int main() {
  
  /*
  scenario: test_random_actions
  uuid: 211377239
  */
  /*
  random actions, total chaos
  */
  gamma_t* board = gamma_new(11, 15, 5, 7);
  assert( board != NULL );
  
  
  assert( gamma_move(board, 2, 9, 5) == 1 );
  assert( gamma_move(board, 2, 3, 13) == 1 );
  
  
  char* board421869517 = gamma_board(board);
  assert( board421869517 != NULL );
  assert( strcmp(board421869517, 
  "...........\n"
  "...2.......\n"
  "...........\n"
  "...........\n"
  "...........\n"
  "...........\n"
  "...........\n"
  "...........\n"
  "...........\n"
  ".........2.\n"
  "...........\n"
  "...........\n"
  "...........\n"
  "...........\n"
  "...........\n") == 0);
  free(board421869517);
  board421869517 = NULL;
  assert( gamma_move(board, 3, 4, 5) == 1 );
  assert( gamma_move(board, 3, 5, 8) == 1 );
  assert( gamma_free_fields(board, 3) == 161 );
  assert( gamma_move(board, 4, 4, 14) == 1 );
  assert( gamma_move(board, 5, 1, 11) == 1 );
  assert( gamma_free_fields(board, 5) == 159 );
  assert( gamma_move(board, 2, 12, 10) == 0 );
  assert( gamma_move(board, 3, 4, 1) == 1 );
  assert( gamma_move(board, 3, 7, 12) == 1 );
  assert( gamma_move(board, 4, 0, 6) == 1 );
  assert( gamma_move(board, 4, 4, 8) == 1 );
  assert( gamma_golden_possible(board, 4) == 1 );
  
  
  char* board806587928 = gamma_board(board);
  assert( board806587928 != NULL );
  assert( strcmp(board806587928, 
  "....4......\n"
  "...2.......\n"
  ".......3...\n"
  ".5.........\n"
  "...........\n"
  "...........\n"
  "....43.....\n"
  "...........\n"
  "4..........\n"
  "....3....2.\n"
  "...........\n"
  "...........\n"
  "...........\n"
  "....3......\n"
  "...........\n") == 0);
  free(board806587928);
  board806587928 = NULL;
  assert( gamma_move(board, 5, 13, 2) == 0 );
  assert( gamma_busy_fields(board, 5) == 1 );
  assert( gamma_golden_move(board, 5, 5, 9) == 0 );
  assert( gamma_move(board, 1, 4, 8) == 0 );
  assert( gamma_move(board, 1, 4, 5) == 0 );
  assert( gamma_move(board, 2, 2, 13) == 1 );
  assert( gamma_free_fields(board, 2) == 154 );
  assert( gamma_move(board, 3, 4, 8) == 0 );
  assert( gamma_move(board, 3, 9, 6) == 1 );
  assert( gamma_move(board, 4, 7, 7) == 1 );
  assert( gamma_move(board, 5, 0, 9) == 1 );
  assert( gamma_move(board, 1, 2, 9) == 1 );
  assert( gamma_move(board, 2, 2, 3) == 1 );
  assert( gamma_move(board, 3, 9, 3) == 1 );
  assert( gamma_move(board, 3, 2, 1) == 1 );
  assert( gamma_golden_move(board, 3, 9, 2) == 0 );
  assert( gamma_move(board, 4, 1, 6) == 1 );
  assert( gamma_free_fields(board, 4) == 146 );
  assert( gamma_move(board, 1, 11, 8) == 0 );
  assert( gamma_move(board, 1, 3, 11) == 1 );
  assert( gamma_move(board, 2, 8, 1) == 1 );
  assert( gamma_golden_move(board, 2, 8, 5) == 0 );
  
  
  char* board506808650 = gamma_board(board);
  assert( board506808650 != NULL );
  assert( strcmp(board506808650, 
  "....4......\n"
  "..22.......\n"
  ".......3...\n"
  ".5.1.......\n"
  "...........\n"
  "5.1........\n"
  "....43.....\n"
  ".......4...\n"
  "44.......3.\n"
  "....3....2.\n"
  "...........\n"
  "..2......3.\n"
  "...........\n"
  "..3.3...2..\n"
  "...........\n") == 0);
  free(board506808650);
  board506808650 = NULL;
  assert( gamma_move(board, 3, 0, 0) == 0 );
  assert( gamma_move(board, 3, 2, 7) == 0 );
  assert( gamma_golden_move(board, 3, 13, 3) == 0 );
  assert( gamma_move(board, 4, 7, 12) == 0 );
  assert( gamma_move(board, 4, 10, 13) == 1 );
  assert( gamma_move(board, 5, 0, 2) == 1 );
  assert( gamma_move(board, 1, 6, 10) == 1 );
  assert( gamma_move(board, 1, 9, 9) == 1 );
  assert( gamma_golden_possible(board, 1) == 1 );
  assert( gamma_golden_move(board, 1, 9, 0) == 0 );
  assert( gamma_move(board, 2, 7, 10) == 1 );
  assert( gamma_move(board, 3, 2, 6) == 0 );
  assert( gamma_move(board, 4, 2, 10) == 1 );
  assert( gamma_move(board, 5, 13, 9) == 0 );
  assert( gamma_move(board, 5, 7, 10) == 0 );
  assert( gamma_move(board, 1, 10, 6) == 1 );
  assert( gamma_move(board, 1, 3, 0) == 1 );
  assert( gamma_move(board, 2, 6, 12) == 1 );
  assert( gamma_move(board, 3, 14, 8) == 0 );
  assert( gamma_move(board, 3, 4, 11) == 0 );
  assert( gamma_move(board, 4, 8, 5) == 1 );
  assert( gamma_move(board, 4, 5, 9) == 0 );
  assert( gamma_move(board, 5, 3, 0) == 0 );
  assert( gamma_busy_fields(board, 5) == 3 );
  assert( gamma_move(board, 1, 4, 6) == 1 );
  assert( gamma_move(board, 2, 9, 1) == 1 );
  assert( gamma_move(board, 2, 8, 1) == 0 );
  assert( gamma_move(board, 3, 7, 12) == 0 );
  assert( gamma_move(board, 4, 7, 9) == 0 );
  assert( gamma_move(board, 4, 6, 4) == 0 );
  assert( gamma_move(board, 5, 1, 6) == 0 );
  assert( gamma_move(board, 5, 0, 6) == 0 );
  assert( gamma_golden_possible(board, 5) == 1 );
  assert( gamma_move(board, 1, 9, 4) == 0 );
  assert( gamma_move(board, 1, 5, 14) == 0 );
  assert( gamma_move(board, 2, 6, 5) == 1 );
  assert( gamma_move(board, 2, 8, 0) == 1 );
  assert( gamma_golden_possible(board, 2) == 1 );
  assert( gamma_move(board, 3, 11, 5) == 0 );
  assert( gamma_move(board, 4, 4, 2) == 0 );
  assert( gamma_busy_fields(board, 4) == 8 );
  assert( gamma_golden_possible(board, 4) == 1 );
  assert( gamma_move(board, 5, 4, 2) == 1 );
  assert( gamma_move(board, 5, 3, 10) == 1 );
  assert( gamma_move(board, 1, 4, 4) == 0 );
  assert( gamma_move(board, 1, 1, 7) == 0 );
  assert( gamma_move(board, 2, 0, 5) == 0 );
  assert( gamma_free_fields(board, 2) == 28 );
  assert( gamma_move(board, 3, 10, 7) == 0 );
  assert( gamma_move(board, 4, 4, 9) == 1 );
  assert( gamma_move(board, 5, 14, 3) == 0 );
  assert( gamma_move(board, 1, 9, 1) == 0 );
  assert( gamma_move(board, 2, 8, 3) == 0 );
  assert( gamma_move(board, 2, 1, 13) == 1 );
  assert( gamma_move(board, 3, 12, 0) == 0 );
  assert( gamma_free_fields(board, 3) == 21 );
  assert( gamma_move(board, 4, 2, 12) == 0 );
  assert( gamma_move(board, 4, 7, 9) == 0 );
  assert( gamma_move(board, 5, 12, 3) == 0 );
  assert( gamma_busy_fields(board, 5) == 5 );
  assert( gamma_move(board, 1, 1, 2) == 0 );
  assert( gamma_move(board, 2, 12, 5) == 0 );
  assert( gamma_move(board, 3, 8, 2) == 0 );
  assert( gamma_move(board, 3, 3, 4) == 0 );
  assert( gamma_busy_fields(board, 4) == 9 );
  assert( gamma_move(board, 5, 4, 4) == 1 );
  assert( gamma_move(board, 1, 5, 2) == 0 );
  assert( gamma_move(board, 1, 3, 1) == 1 );
  assert( gamma_golden_possible(board, 1) == 1 );
  assert( gamma_move(board, 3, 4, 9) == 0 );
  assert( gamma_move(board, 3, 9, 14) == 0 );
  assert( gamma_busy_fields(board, 3) == 7 );
  assert( gamma_move(board, 4, 2, 8) == 0 );
  assert( gamma_move(board, 4, 4, 14) == 0 );
  assert( gamma_move(board, 5, 5, 10) == 1 );
  assert( gamma_move(board, 1, 4, 5) == 0 );
  assert( gamma_move(board, 2, 12, 2) == 0 );
  assert( gamma_move(board, 2, 0, 1) == 0 );
  assert( gamma_move(board, 3, 4, 6) == 0 );
  assert( gamma_move(board, 3, 0, 13) == 0 );
  assert( gamma_move(board, 4, 0, 5) == 1 );
  assert( gamma_busy_fields(board, 4) == 10 );
  assert( gamma_golden_possible(board, 4) == 1 );
  assert( gamma_move(board, 5, 8, 1) == 0 );
  assert( gamma_move(board, 1, 0, 4) == 0 );
  assert( gamma_move(board, 1, 6, 4) == 0 );
  assert( gamma_move(board, 2, 7, 5) == 1 );
  assert( gamma_busy_fields(board, 2) == 12 );
  assert( gamma_move(board, 3, 4, 12) == 0 );
  assert( gamma_move(board, 4, 4, 14) == 0 );
  assert( gamma_move(board, 4, 7, 5) == 0 );
  assert( gamma_free_fields(board, 4) == 24 );
  assert( gamma_move(board, 5, 8, 7) == 0 );
  assert( gamma_move(board, 5, 1, 7) == 0 );
  assert( gamma_move(board, 2, 2, 3) == 0 );
  assert( gamma_move(board, 2, 1, 6) == 0 );
  assert( gamma_move(board, 3, 5, 8) == 0 );
  assert( gamma_move(board, 3, 3, 10) == 0 );
  assert( gamma_busy_fields(board, 3) == 7 );
  assert( gamma_move(board, 4, 5, 1) == 0 );
  assert( gamma_move(board, 5, 12, 2) == 0 );
  assert( gamma_move(board, 1, 12, 10) == 0 );
  assert( gamma_move(board, 1, 3, 7) == 0 );
  assert( gamma_move(board, 2, 7, 0) == 1 );
  assert( gamma_move(board, 3, 2, 1) == 0 );
  assert( gamma_free_fields(board, 3) == 19 );
  assert( gamma_move(board, 5, 5, 11) == 1 );
  assert( gamma_golden_possible(board, 5) == 1 );
  
  
  char* board844804312 = gamma_board(board);
  assert( board844804312 != NULL );
  assert( strcmp(board844804312, 
  "....4......\n"
  ".222......4\n"
  "......23...\n"
  ".5.1.5.....\n"
  "..45.512...\n"
  "5.1.4....1.\n"
  "....43.....\n"
  ".......4...\n"
  "44..1....31\n"
  "4...3.2242.\n"
  "....5......\n"
  "..2......3.\n"
  "5...5......\n"
  "..313...22.\n"
  "...1...22..\n") == 0);
  free(board844804312);
  board844804312 = NULL;
  assert( gamma_move(board, 1, 3, 12) == 1 );
  assert( gamma_free_fields(board, 1) == 21 );
  assert( gamma_move(board, 2, 0, 7) == 0 );
  assert( gamma_busy_fields(board, 2) == 13 );
  assert( gamma_busy_fields(board, 3) == 7 );
  assert( gamma_move(board, 4, 3, 14) == 1 );
  assert( gamma_busy_fields(board, 5) == 8 );
  assert( gamma_move(board, 1, 14, 1) == 0 );
  assert( gamma_move(board, 1, 5, 5) == 0 );
  assert( gamma_move(board, 3, 5, 10) == 0 );
  assert( gamma_move(board, 3, 2, 13) == 0 );
  assert( gamma_move(board, 4, 1, 6) == 0 );
  assert( gamma_move(board, 4, 8, 0) == 0 );
  assert( gamma_move(board, 5, 7, 2) == 0 );
  assert( gamma_move(board, 1, 3, 12) == 0 );
  assert( gamma_move(board, 2, 6, 5) == 0 );
  assert( gamma_move(board, 4, 1, 1) == 0 );
  assert( gamma_move(board, 4, 2, 4) == 0 );
  assert( gamma_move(board, 5, 3, 12) == 0 );
  assert( gamma_golden_move(board, 5, 13, 1) == 0 );
  assert( gamma_move(board, 1, 2, 1) == 0 );
  assert( gamma_golden_possible(board, 1) == 1 );
  assert( gamma_move(board, 2, 9, 6) == 0 );
  assert( gamma_move(board, 2, 8, 12) == 0 );
  assert( gamma_move(board, 3, 0, 0) == 0 );
  assert( gamma_move(board, 3, 6, 14) == 0 );
  assert( gamma_move(board, 5, 11, 9) == 0 );
  assert( gamma_move(board, 1, 3, 4) == 0 );
  assert( gamma_move(board, 1, 0, 13) == 0 );
  assert( gamma_move(board, 2, 6, 10) == 0 );
  assert( gamma_golden_move(board, 2, 11, 1) == 0 );
  assert( gamma_move(board, 3, 4, 9) == 0 );
  assert( gamma_move(board, 4, 7, 10) == 0 );
  assert( gamma_move(board, 4, 5, 1) == 0 );
  assert( gamma_move(board, 5, 9, 10) == 0 );
  assert( gamma_move(board, 5, 5, 0) == 0 );
  assert( gamma_move(board, 1, 11, 6) == 0 );
  assert( gamma_move(board, 1, 3, 14) == 0 );
  assert( gamma_move(board, 2, 7, 11) == 1 );
  assert( gamma_golden_possible(board, 2) == 1 );
  assert( gamma_move(board, 3, 9, 3) == 0 );
  assert( gamma_move(board, 3, 6, 11) == 0 );
  assert( gamma_golden_possible(board, 3) == 1 );
  assert( gamma_move(board, 4, 7, 9) == 0 );
  assert( gamma_move(board, 4, 10, 8) == 0 );
  assert( gamma_busy_fields(board, 4) == 11 );
  assert( gamma_free_fields(board, 4) == 24 );
  assert( gamma_move(board, 5, 13, 5) == 0 );
  assert( gamma_move(board, 1, 3, 13) == 0 );
  assert( gamma_move(board, 1, 8, 11) == 0 );
  assert( gamma_move(board, 2, 14, 2) == 0 );
  assert( gamma_move(board, 3, 5, 8) == 0 );
  assert( gamma_move(board, 4, 4, 8) == 0 );
  assert( gamma_free_fields(board, 4) == 24 );
  assert( gamma_golden_possible(board, 4) == 1 );
  assert( gamma_move(board, 5, 4, 2) == 0 );
  assert( gamma_move(board, 5, 8, 5) == 0 );
  
  
  char* board470943822 = gamma_board(board);
  assert( board470943822 != NULL );
  assert( strcmp(board470943822, 
  "...44......\n"
  ".222......4\n"
  "...1..23...\n"
  ".5.1.5.2...\n"
  "..45.512...\n"
  "5.1.4....1.\n"
  "....43.....\n"
  ".......4...\n"
  "44..1....31\n"
  "4...3.2242.\n"
  "....5......\n"
  "..2......3.\n"
  "5...5......\n"
  "..313...22.\n"
  "...1...22..\n") == 0);
  free(board470943822);
  board470943822 = NULL;
  assert( gamma_move(board, 1, 13, 6) == 0 );
  assert( gamma_busy_fields(board, 1) == 9 );
  assert( gamma_move(board, 2, 14, 5) == 0 );
  assert( gamma_move(board, 2, 4, 14) == 0 );
  assert( gamma_move(board, 3, 3, 12) == 0 );
  assert( gamma_move(board, 3, 5, 8) == 0 );
  assert( gamma_move(board, 4, 4, 13) == 1 );
  assert( gamma_move(board, 4, 5, 7) == 0 );
  assert( gamma_move(board, 5, 5, 11) == 0 );
  assert( gamma_move(board, 5, 4, 5) == 0 );
  assert( gamma_move(board, 1, 6, 4) == 0 );
  assert( gamma_move(board, 1, 6, 14) == 0 );
  assert( gamma_move(board, 2, 0, 5) == 0 );
  assert( gamma_move(board, 3, 6, 6) == 0 );
  assert( gamma_move(board, 3, 10, 10) == 0 );
  assert( gamma_move(board, 4, 8, 2) == 0 );
  assert( gamma_free_fields(board, 4) == 25 );
  assert( gamma_golden_move(board, 4, 10, 3) == 0 );
  assert( gamma_move(board, 5, 0, 7) == 0 );
  assert( gamma_move(board, 5, 2, 13) == 0 );
  assert( gamma_move(board, 1, 2, 10) == 0 );
  assert( gamma_golden_possible(board, 1) == 1 );
  assert( gamma_move(board, 2, 8, 3) == 0 );
  assert( gamma_move(board, 2, 7, 9) == 1 );
  assert( gamma_move(board, 3, 3, 6) == 0 );
  assert( gamma_move(board, 4, 8, 7) == 1 );
  assert( gamma_move(board, 4, 2, 3) == 0 );
  assert( gamma_move(board, 5, 4, 2) == 0 );
  assert( gamma_golden_possible(board, 5) == 1 );
  assert( gamma_move(board, 1, 5, 6) == 1 );
  assert( gamma_move(board, 1, 7, 5) == 0 );
  assert( gamma_move(board, 2, 11, 10) == 0 );
  assert( gamma_move(board, 2, 8, 8) == 0 );
  assert( gamma_move(board, 3, 0, 7) == 0 );
  assert( gamma_move(board, 4, 3, 8) == 1 );
  assert( gamma_move(board, 4, 0, 2) == 0 );
  assert( gamma_golden_possible(board, 4) == 1 );
  assert( gamma_move(board, 5, 8, 1) == 0 );
  assert( gamma_move(board, 5, 8, 8) == 0 );
  assert( gamma_move(board, 1, 12, 10) == 0 );
  assert( gamma_move(board, 2, 14, 5) == 0 );
  assert( gamma_golden_possible(board, 2) == 1 );
  assert( gamma_move(board, 3, 8, 10) == 0 );
  assert( gamma_move(board, 3, 5, 14) == 0 );
  assert( gamma_move(board, 4, 6, 6) == 0 );
  assert( gamma_move(board, 4, 2, 12) == 0 );
  assert( gamma_busy_fields(board, 4) == 14 );
  assert( gamma_move(board, 5, 10, 8) == 0 );
  assert( gamma_move(board, 1, 1, 1) == 0 );
  assert( gamma_move(board, 1, 8, 0) == 0 );
  assert( gamma_move(board, 2, 6, 8) == 0 );
  assert( gamma_move(board, 3, 4, 2) == 0 );
  assert( gamma_busy_fields(board, 3) == 7 );
  assert( gamma_move(board, 4, 2, 5) == 0 );
  assert( gamma_move(board, 4, 2, 9) == 0 );
  assert( gamma_move(board, 5, 8, 8) == 0 );
  assert( gamma_free_fields(board, 5) == 21 );
  assert( gamma_golden_move(board, 5, 1, 2) == 0 );
  assert( gamma_move(board, 1, 14, 0) == 0 );
  assert( gamma_move(board, 1, 0, 13) == 0 );
  assert( gamma_move(board, 2, 4, 3) == 0 );
  assert( gamma_move(board, 2, 9, 1) == 0 );
  assert( gamma_move(board, 3, 7, 5) == 0 );
  assert( gamma_move(board, 4, 6, 4) == 0 );
  assert( gamma_golden_possible(board, 4) == 1 );
  assert( gamma_move(board, 5, 12, 2) == 0 );
  assert( gamma_move(board, 1, 5, 1) == 0 );
  assert( gamma_move(board, 2, 3, 1) == 0 );
  assert( gamma_move(board, 2, 10, 11) == 0 );
  assert( gamma_move(board, 3, 9, 0) == 0 );
  assert( gamma_free_fields(board, 3) == 18 );
  assert( gamma_move(board, 4, 11, 10) == 0 );
  assert( gamma_move(board, 5, 0, 13) == 0 );
  assert( gamma_free_fields(board, 5) == 21 );
  assert( gamma_golden_move(board, 5, 6, 5) == 0 );
  assert( gamma_move(board, 1, 5, 3) == 0 );
  assert( gamma_move(board, 1, 2, 10) == 0 );
  assert( gamma_move(board, 2, 7, 9) == 0 );
  assert( gamma_busy_fields(board, 2) == 15 );
  assert( gamma_golden_possible(board, 2) == 1 );
  assert( gamma_move(board, 3, 9, 10) == 0 );
  assert( gamma_move(board, 3, 10, 11) == 0 );
  assert( gamma_move(board, 4, 3, 4) == 0 );
  assert( gamma_move(board, 4, 10, 9) == 0 );
  assert( gamma_move(board, 5, 12, 10) == 0 );
  assert( gamma_golden_possible(board, 5) == 1 );
  assert( gamma_move(board, 1, 14, 10) == 0 );
  assert( gamma_move(board, 1, 0, 4) == 0 );
  assert( gamma_busy_fields(board, 1) == 10 );
  
  
  char* board812326497 = gamma_board(board);
  assert( board812326497 != NULL );
  assert( strcmp(board812326497, 
  "...44......\n"
  ".2224.....4\n"
  "...1..23...\n"
  ".5.1.5.2...\n"
  "..45.512...\n"
  "5.1.4..2.1.\n"
  "...443.....\n"
  ".......44..\n"
  "44..11...31\n"
  "4...3.2242.\n"
  "....5......\n"
  "..2......3.\n"
  "5...5......\n"
  "..313...22.\n"
  "...1...22..\n") == 0);
  free(board812326497);
  board812326497 = NULL;
  assert( gamma_move(board, 2, 12, 0) == 0 );
  assert( gamma_move(board, 2, 1, 8) == 0 );
  assert( gamma_move(board, 3, 3, 4) == 0 );
  assert( gamma_move(board, 4, 9, 1) == 0 );
  assert( gamma_move(board, 5, 1, 5) == 0 );
  assert( gamma_move(board, 5, 2, 13) == 0 );
  assert( gamma_move(board, 2, 9, 8) == 0 );
  assert( gamma_move(board, 2, 3, 5) == 0 );
  assert( gamma_move(board, 3, 6, 8) == 1 );
  assert( gamma_move(board, 3, 3, 3) == 0 );
  assert( gamma_golden_move(board, 3, 8, 5) == 0 );
  assert( gamma_move(board, 4, 6, 6) == 0 );
  assert( gamma_move(board, 4, 5, 0) == 0 );
  assert( gamma_busy_fields(board, 4) == 14 );
  assert( gamma_move(board, 5, 7, 10) == 0 );
  assert( gamma_move(board, 5, 3, 13) == 0 );
  assert( gamma_move(board, 1, 12, 4) == 0 );
  assert( gamma_move(board, 1, 9, 9) == 0 );
  assert( gamma_busy_fields(board, 1) == 10 );
  assert( gamma_move(board, 2, 8, 10) == 1 );
  assert( gamma_move(board, 2, 4, 11) == 0 );
  assert( gamma_golden_possible(board, 2) == 1 );
  assert( gamma_move(board, 3, 3, 6) == 0 );
  assert( gamma_move(board, 3, 3, 12) == 0 );
  assert( gamma_move(board, 4, 1, 6) == 0 );
  assert( gamma_move(board, 5, 2, 11) == 1 );
  assert( gamma_move(board, 1, 2, 7) == 0 );
  assert( gamma_move(board, 1, 2, 10) == 0 );
  assert( gamma_move(board, 2, 7, 0) == 0 );
  assert( gamma_move(board, 2, 3, 4) == 0 );
  assert( gamma_golden_move(board, 2, 6, 10) == 1 );
  assert( gamma_busy_fields(board, 3) == 8 );
  assert( gamma_move(board, 4, 2, 6) == 1 );
  assert( gamma_move(board, 4, 3, 7) == 1 );
  assert( gamma_move(board, 5, 8, 9) == 0 );
  assert( gamma_move(board, 5, 0, 4) == 0 );
  assert( gamma_move(board, 1, 11, 9) == 0 );
  assert( gamma_golden_move(board, 2, 2, 0) == 0 );
  assert( gamma_move(board, 3, 2, 2) == 1 );
  assert( gamma_move(board, 3, 0, 7) == 0 );
  assert( gamma_move(board, 4, 0, 10) == 0 );
  assert( gamma_move(board, 5, 3, 8) == 0 );
  assert( gamma_move(board, 5, 3, 6) == 0 );
  assert( gamma_move(board, 1, 6, 1) == 1 );
  assert( gamma_golden_move(board, 1, 3, 9) == 0 );
  assert( gamma_move(board, 2, 6, 9) == 1 );
  assert( gamma_move(board, 2, 3, 14) == 0 );
  assert( gamma_move(board, 3, 10, 10) == 0 );
  assert( gamma_move(board, 4, 10, 3) == 0 );
  
  
  char* board907143980 = gamma_board(board);
  assert( board907143980 != NULL );
  assert( strcmp(board907143980, 
  "...44......\n"
  ".2224.....4\n"
  "...1..23...\n"
  ".551.5.2...\n"
  "..45.5222..\n"
  "5.1.4.22.1.\n"
  "...4433....\n"
  "...4...44..\n"
  "444.11...31\n"
  "4...3.2242.\n"
  "....5......\n"
  "..2......3.\n"
  "5.3.5......\n"
  "..313.1.22.\n"
  "...1...22..\n") == 0);
  free(board907143980);
  board907143980 = NULL;
  assert( gamma_move(board, 5, 11, 8) == 0 );
  assert( gamma_free_fields(board, 5) == 21 );
  
  
  char* board363791631 = gamma_board(board);
  assert( board363791631 != NULL );
  assert( strcmp(board363791631, 
  "...44......\n"
  ".2224.....4\n"
  "...1..23...\n"
  ".551.5.2...\n"
  "..45.5222..\n"
  "5.1.4.22.1.\n"
  "...4433....\n"
  "...4...44..\n"
  "444.11...31\n"
  "4...3.2242.\n"
  "....5......\n"
  "..2......3.\n"
  "5.3.5......\n"
  "..313.1.22.\n"
  "...1...22..\n") == 0);
  free(board363791631);
  board363791631 = NULL;
  assert( gamma_move(board, 1, 7, 4) == 0 );
  assert( gamma_move(board, 1, 2, 7) == 0 );
  assert( gamma_move(board, 2, 14, 2) == 0 );
  assert( gamma_move(board, 2, 0, 5) == 0 );
  assert( gamma_move(board, 3, 11, 9) == 0 );
  
  
  char* board809710269 = gamma_board(board);
  assert( board809710269 != NULL );
  assert( strcmp(board809710269, 
  "...44......\n"
  ".2224.....4\n"
  "...1..23...\n"
  ".551.5.2...\n"
  "..45.5222..\n"
  "5.1.4.22.1.\n"
  "...4433....\n"
  "...4...44..\n"
  "444.11...31\n"
  "4...3.2242.\n"
  "....5......\n"
  "..2......3.\n"
  "5.3.5......\n"
  "..313.1.22.\n"
  "...1...22..\n") == 0);
  free(board809710269);
  board809710269 = NULL;
  assert( gamma_move(board, 4, 0, 4) == 1 );
  assert( gamma_move(board, 4, 6, 11) == 0 );
  assert( gamma_move(board, 5, 14, 0) == 0 );
  assert( gamma_golden_possible(board, 5) == 1 );
  assert( gamma_move(board, 1, 8, 4) == 0 );
  assert( gamma_busy_fields(board, 1) == 10 );
  assert( gamma_move(board, 2, 7, 0) == 0 );
  assert( gamma_busy_fields(board, 2) == 18 );
  assert( gamma_move(board, 3, 10, 12) == 0 );
  assert( gamma_move(board, 3, 10, 13) == 0 );
  assert( gamma_free_fields(board, 3) == 20 );
  assert( gamma_move(board, 4, 4, 13) == 0 );
  assert( gamma_move(board, 5, 1, 10) == 1 );
  assert( gamma_busy_fields(board, 5) == 10 );
  assert( gamma_move(board, 1, 4, 1) == 0 );
  assert( gamma_move(board, 2, 3, 7) == 0 );
  assert( gamma_move(board, 2, 6, 0) == 1 );
  assert( gamma_busy_fields(board, 2) == 19 );
  assert( gamma_move(board, 3, 4, 0) == 1 );
  assert( gamma_move(board, 3, 4, 0) == 0 );
  assert( gamma_busy_fields(board, 3) == 10 );
  assert( gamma_move(board, 4, 9, 2) == 0 );
  assert( gamma_move(board, 5, 2, 8) == 0 );
  assert( gamma_move(board, 5, 8, 12) == 0 );
  assert( gamma_move(board, 1, 7, 1) == 1 );
  assert( gamma_move(board, 1, 8, 9) == 1 );
  assert( gamma_free_fields(board, 1) == 22 );
  assert( gamma_move(board, 2, 7, 1) == 0 );
  assert( gamma_move(board, 3, 1, 10) == 0 );
  assert( gamma_move(board, 3, 10, 14) == 0 );
  assert( gamma_free_fields(board, 4) == 27 );
  assert( gamma_move(board, 5, 10, 3) == 0 );
  assert( gamma_golden_possible(board, 5) == 1 );
  assert( gamma_move(board, 1, 2, 7) == 0 );
  assert( gamma_move(board, 2, 1, 5) == 0 );
  assert( gamma_move(board, 2, 4, 7) == 0 );
  assert( gamma_free_fields(board, 2) == 27 );
  assert( gamma_move(board, 3, 7, 10) == 0 );
  assert( gamma_move(board, 3, 0, 2) == 0 );
  assert( gamma_free_fields(board, 3) == 20 );
  assert( gamma_move(board, 4, 3, 6) == 1 );
  assert( gamma_move(board, 5, 10, 8) == 0 );
  assert( gamma_move(board, 5, 5, 8) == 0 );
  assert( gamma_golden_possible(board, 5) == 1 );
  assert( gamma_move(board, 1, 9, 5) == 0 );
  assert( gamma_move(board, 1, 3, 0) == 0 );
  assert( gamma_move(board, 2, 5, 10) == 0 );
  assert( gamma_move(board, 2, 4, 1) == 0 );
  assert( gamma_move(board, 3, 5, 5) == 1 );
  assert( gamma_move(board, 4, 0, 10) == 1 );
  assert( gamma_move(board, 4, 9, 9) == 0 );
  assert( gamma_busy_fields(board, 4) == 19 );
  assert( gamma_golden_possible(board, 4) == 1 );
  assert( gamma_golden_move(board, 4, 11, 5) == 0 );
  assert( gamma_move(board, 5, 5, 4) == 1 );
  assert( gamma_move(board, 5, 6, 7) == 0 );
  assert( gamma_move(board, 1, 1, 1) == 0 );
  assert( gamma_move(board, 1, 6, 1) == 0 );
  assert( gamma_move(board, 2, 10, 10) == 0 );
  assert( gamma_move(board, 2, 9, 5) == 0 );
  assert( gamma_golden_possible(board, 2) == 0 );
  assert( gamma_move(board, 3, 8, 9) == 0 );
  assert( gamma_free_fields(board, 3) == 19 );
  assert( gamma_move(board, 4, 9, 5) == 0 );
  assert( gamma_move(board, 5, 4, 3) == 1 );
  assert( gamma_move(board, 5, 1, 8) == 1 );
  assert( gamma_busy_fields(board, 5) == 13 );
  assert( gamma_golden_possible(board, 5) == 1 );
  assert( gamma_move(board, 1, 6, 7) == 0 );
  assert( gamma_move(board, 2, 2, 3) == 0 );
  assert( gamma_free_fields(board, 2) == 26 );
  assert( gamma_move(board, 3, 3, 0) == 0 );
  assert( gamma_move(board, 3, 0, 12) == 0 );
  assert( gamma_golden_move(board, 3, 6, 0) == 0 );
  assert( gamma_move(board, 4, 10, 9) == 0 );
  assert( gamma_move(board, 5, 9, 1) == 0 );
  assert( gamma_move(board, 5, 0, 13) == 0 );
  assert( gamma_move(board, 1, 10, 4) == 0 );
  assert( gamma_move(board, 2, 3, 11) == 0 );
  assert( gamma_move(board, 3, 2, 0) == 1 );
  assert( gamma_move(board, 3, 6, 6) == 0 );
  assert( gamma_move(board, 4, 10, 8) == 0 );
  assert( gamma_move(board, 4, 0, 0) == 0 );
  assert( gamma_free_fields(board, 4) == 28 );
  assert( gamma_move(board, 5, 13, 5) == 0 );
  assert( gamma_move(board, 5, 2, 12) == 1 );
  assert( gamma_move(board, 1, 11, 6) == 0 );
  assert( gamma_golden_possible(board, 1) == 1 );
  assert( gamma_move(board, 2, 5, 14) == 0 );
  assert( gamma_move(board, 2, 4, 12) == 0 );
  assert( gamma_busy_fields(board, 2) == 19 );
  assert( gamma_free_fields(board, 2) == 25 );
  assert( gamma_move(board, 3, 6, 7) == 1 );
  assert( gamma_move(board, 3, 6, 3) == 0 );
  assert( gamma_move(board, 4, 8, 0) == 0 );
  assert( gamma_move(board, 5, 3, 5) == 0 );
  assert( gamma_move(board, 5, 7, 5) == 0 );
  assert( gamma_free_fields(board, 5) == 21 );
  assert( gamma_move(board, 1, 8, 10) == 0 );
  assert( gamma_move(board, 1, 9, 6) == 0 );
  assert( gamma_move(board, 2, 7, 5) == 0 );
  assert( gamma_move(board, 3, 3, 10) == 0 );
  assert( gamma_move(board, 3, 2, 4) == 0 );
  assert( gamma_move(board, 4, 12, 1) == 0 );
  assert( gamma_move(board, 4, 5, 10) == 0 );
  assert( gamma_move(board, 5, 12, 0) == 0 );
  assert( gamma_move(board, 5, 6, 12) == 0 );
  assert( gamma_move(board, 1, 13, 0) == 0 );
  
  
  char* board456134012 = gamma_board(board);
  assert( board456134012 != NULL );
  assert( strcmp(board456134012, 
  "...44......\n"
  ".2224.....4\n"
  "..51..23...\n"
  ".551.5.2...\n"
  "4545.5222..\n"
  "5.1.4.2211.\n"
  ".5.4433....\n"
  "...4..344..\n"
  "444411...31\n"
  "4...332242.\n"
  "4...55.....\n"
  "..2.5....3.\n"
  "5.3.5......\n"
  "..313.1122.\n"
  "..313.222..\n") == 0);
  free(board456134012);
  board456134012 = NULL;
  assert( gamma_move(board, 2, 2, 8) == 0 );
  assert( gamma_move(board, 2, 2, 7) == 0 );
  assert( gamma_move(board, 3, 4, 2) == 0 );
  assert( gamma_move(board, 3, 0, 14) == 0 );
  assert( gamma_move(board, 4, 3, 3) == 0 );
  assert( gamma_move(board, 4, 9, 4) == 0 );
  assert( gamma_move(board, 5, 0, 9) == 0 );
  assert( gamma_move(board, 5, 0, 7) == 0 );
  assert( gamma_move(board, 1, 9, 7) == 0 );
  assert( gamma_move(board, 2, 11, 8) == 0 );
  assert( gamma_move(board, 3, 5, 6) == 0 );
  assert( gamma_move(board, 4, 5, 1) == 0 );
  assert( gamma_busy_fields(board, 4) == 19 );
  assert( gamma_free_fields(board, 4) == 27 );
  assert( gamma_move(board, 5, 7, 10) == 0 );
  assert( gamma_move(board, 1, 2, 1) == 0 );
  assert( gamma_move(board, 2, 0, 12) == 0 );
  assert( gamma_move(board, 2, 8, 0) == 0 );
  assert( gamma_move(board, 3, 7, 5) == 0 );
  assert( gamma_move(board, 4, 8, 2) == 0 );
  assert( gamma_golden_possible(board, 4) == 1 );
  assert( gamma_golden_move(board, 4, 0, 7) == 0 );
  assert( gamma_move(board, 5, 6, 6) == 0 );
  assert( gamma_move(board, 5, 8, 12) == 0 );
  
  
  char* board981258617 = gamma_board(board);
  assert( board981258617 != NULL );
  assert( strcmp(board981258617, 
  "...44......\n"
  ".2224.....4\n"
  "..51..23...\n"
  ".551.5.2...\n"
  "4545.5222..\n"
  "5.1.4.2211.\n"
  ".5.4433....\n"
  "...4..344..\n"
  "444411...31\n"
  "4...332242.\n"
  "4...55.....\n"
  "..2.5....3.\n"
  "5.3.5......\n"
  "..313.1122.\n"
  "..313.222..\n") == 0);
  free(board981258617);
  board981258617 = NULL;
  assert( gamma_move(board, 1, 1, 10) == 0 );
  assert( gamma_move(board, 2, 12, 8) == 0 );
  assert( gamma_move(board, 2, 9, 5) == 0 );
  assert( gamma_move(board, 3, 7, 9) == 0 );
  assert( gamma_move(board, 3, 2, 5) == 0 );
  assert( gamma_move(board, 4, 11, 4) == 0 );
  assert( gamma_move(board, 5, 1, 11) == 0 );
  assert( gamma_move(board, 5, 1, 13) == 0 );
  assert( gamma_move(board, 1, 8, 4) == 0 );
  assert( gamma_move(board, 2, 12, 1) == 0 );
  assert( gamma_busy_fields(board, 3) == 13 );
  assert( gamma_move(board, 4, 8, 8) == 1 );
  assert( gamma_move(board, 4, 0, 6) == 0 );
  assert( gamma_golden_possible(board, 4) == 1 );
  assert( gamma_move(board, 5, 6, 6) == 0 );
  assert( gamma_move(board, 1, 1, 1) == 0 );
  assert( gamma_move(board, 2, 3, 3) == 1 );
  assert( gamma_move(board, 2, 2, 12) == 0 );
  assert( gamma_move(board, 4, 10, 7) == 0 );
  assert( gamma_move(board, 4, 8, 5) == 0 );
  assert( gamma_move(board, 5, 4, 5) == 0 );
  assert( gamma_move(board, 5, 1, 9) == 1 );
  assert( gamma_golden_possible(board, 5) == 1 );
  assert( gamma_move(board, 1, 7, 7) == 0 );
  assert( gamma_move(board, 1, 7, 1) == 0 );
  assert( gamma_busy_fields(board, 1) == 12 );
  assert( gamma_move(board, 2, 11, 8) == 0 );
  assert( gamma_move(board, 2, 10, 5) == 1 );
  assert( gamma_move(board, 3, 3, 14) == 0 );
  assert( gamma_move(board, 3, 5, 0) == 1 );
  assert( gamma_move(board, 4, 4, 3) == 0 );
  assert( gamma_move(board, 5, 0, 1) == 1 );
  assert( gamma_move(board, 1, 2, 12) == 0 );
  assert( gamma_free_fields(board, 1) == 15 );
  assert( gamma_golden_possible(board, 1) == 1 );
  assert( gamma_move(board, 2, 14, 6) == 0 );
  assert( gamma_move(board, 2, 2, 5) == 0 );
  assert( gamma_free_fields(board, 2) == 25 );
  assert( gamma_move(board, 3, 14, 5) == 0 );
  assert( gamma_move(board, 4, 2, 3) == 0 );
  assert( gamma_move(board, 5, 3, 10) == 0 );
  assert( gamma_busy_fields(board, 5) == 16 );
  assert( gamma_move(board, 1, 5, 2) == 0 );
  assert( gamma_move(board, 1, 6, 0) == 0 );
  assert( gamma_golden_move(board, 1, 2, 2) == 0 );
  assert( gamma_move(board, 2, 13, 5) == 0 );
  assert( gamma_move(board, 2, 4, 1) == 0 );
  assert( gamma_move(board, 3, 7, 5) == 0 );
  assert( gamma_free_fields(board, 3) == 18 );
  assert( gamma_move(board, 4, 10, 0) == 0 );
  assert( gamma_busy_fields(board, 4) == 20 );
  
  
  char* board295018825 = gamma_board(board);
  assert( board295018825 != NULL );
  assert( strcmp(board295018825, 
  "...44......\n"
  ".2224.....4\n"
  "..51..23...\n"
  ".551.5.2...\n"
  "4545.5222..\n"
  "551.4.2211.\n"
  ".5.4433.4..\n"
  "...4..344..\n"
  "444411...31\n"
  "4...3322422\n"
  "4...55.....\n"
  "..225....3.\n"
  "5.3.5......\n"
  "5.313.1122.\n"
  "..3133222..\n") == 0);
  free(board295018825);
  board295018825 = NULL;
  assert( gamma_move(board, 5, 4, 10) == 1 );
  assert( gamma_golden_move(board, 5, 14, 4) == 0 );
  assert( gamma_golden_possible(board, 1) == 1 );
  assert( gamma_move(board, 2, 8, 1) == 0 );
  assert( gamma_move(board, 3, 12, 5) == 0 );
  assert( gamma_move(board, 5, 9, 5) == 0 );
  assert( gamma_move(board, 1, 2, 1) == 0 );
  assert( gamma_move(board, 1, 3, 4) == 0 );
  assert( gamma_move(board, 2, 0, 1) == 0 );
  assert( gamma_move(board, 2, 10, 7) == 0 );
  assert( gamma_move(board, 3, 0, 1) == 0 );
  assert( gamma_golden_possible(board, 3) == 1 );
  assert( gamma_move(board, 4, 9, 4) == 0 );
  assert( gamma_move(board, 4, 9, 11) == 0 );
  assert( gamma_move(board, 5, 5, 0) == 0 );
  assert( gamma_move(board, 5, 9, 8) == 1 );
  assert( gamma_free_fields(board, 5) == 80 );
  assert( gamma_move(board, 1, 11, 4) == 0 );
  assert( gamma_move(board, 1, 5, 14) == 0 );
  assert( gamma_move(board, 2, 3, 8) == 0 );
  assert( gamma_move(board, 2, 7, 11) == 0 );
  assert( gamma_move(board, 3, 8, 2) == 0 );
  assert( gamma_golden_possible(board, 3) == 1 );
  
  
  char* board935279776 = gamma_board(board);
  assert( board935279776 != NULL );
  assert( strcmp(board935279776, 
  "...44......\n"
  ".2224.....4\n"
  "..51..23...\n"
  ".551.5.2...\n"
  "454555222..\n"
  "551.4.2211.\n"
  ".5.4433.45.\n"
  "...4..344..\n"
  "444411...31\n"
  "4...3322422\n"
  "4...55.....\n"
  "..225....3.\n"
  "5.3.5......\n"
  "5.313.1122.\n"
  "..3133222..\n") == 0);
  free(board935279776);
  board935279776 = NULL;
  assert( gamma_move(board, 1, 8, 4) == 0 );
  assert( gamma_move(board, 2, 8, 6) == 0 );
  assert( gamma_move(board, 3, 2, 7) == 0 );
  assert( gamma_move(board, 3, 9, 11) == 0 );
  assert( gamma_move(board, 5, 13, 8) == 0 );
  assert( gamma_move(board, 5, 10, 1) == 1 );
  assert( gamma_golden_possible(board, 5) == 1 );
  assert( gamma_move(board, 1, 2, 13) == 0 );
  assert( gamma_free_fields(board, 1) == 14 );
  assert( gamma_golden_possible(board, 1) == 1 );
  assert( gamma_move(board, 2, 3, 5) == 0 );
  assert( gamma_move(board, 2, 9, 13) == 0 );
  assert( gamma_busy_fields(board, 2) == 21 );
  assert( gamma_move(board, 3, 4, 7) == 0 );
  assert( gamma_move(board, 3, 4, 0) == 0 );
  assert( gamma_move(board, 4, 6, 10) == 0 );
  assert( gamma_move(board, 4, 5, 13) == 1 );
  assert( gamma_move(board, 5, 7, 13) == 1 );
  assert( gamma_move(board, 5, 9, 2) == 0 );
  
  
  char* board492446012 = gamma_board(board);
  assert( board492446012 != NULL );
  assert( strcmp(board492446012, 
  "...44......\n"
  ".22244.5..4\n"
  "..51..23...\n"
  ".551.5.2...\n"
  "454555222..\n"
  "551.4.2211.\n"
  ".5.4433.45.\n"
  "...4..344..\n"
  "444411...31\n"
  "4...3322422\n"
  "4...55.....\n"
  "..225....3.\n"
  "5.3.5......\n"
  "5.313.11225\n"
  "..3133222..\n") == 0);
  free(board492446012);
  board492446012 = NULL;
  assert( gamma_move(board, 1, 3, 10) == 0 );
  assert( gamma_busy_fields(board, 1) == 12 );
  assert( gamma_golden_move(board, 1, 2, 0) == 1 );
  assert( gamma_move(board, 2, 2, 5) == 0 );
  assert( gamma_busy_fields(board, 2) == 21 );
  assert( gamma_move(board, 4, 5, 1) == 0 );
  assert( gamma_move(board, 5, 2, 8) == 1 );
  assert( gamma_move(board, 5, 8, 12) == 0 );
  assert( gamma_move(board, 1, 7, 10) == 0 );
  assert( gamma_move(board, 1, 6, 9) == 0 );
  assert( gamma_move(board, 2, 6, 7) == 0 );
  assert( gamma_move(board, 3, 6, 7) == 0 );
  assert( gamma_move(board, 3, 7, 7) == 0 );
  assert( gamma_move(board, 4, 3, 0) == 0 );
  assert( gamma_move(board, 4, 1, 12) == 0 );
  assert( gamma_move(board, 5, 7, 4) == 0 );
  assert( gamma_golden_possible(board, 5) == 1 );
  
  
  gamma_delete(board);
  
      return 0;
  }
  