354 printw("\rCannot perform asynchronous network IO"); |
354 printw("\rCannot perform asynchronous network IO"); |
355 cbreak(); getch(); |
355 cbreak(); getch(); |
356 exit(EXIT_FAILURE); |
356 exit(EXIT_FAILURE); |
357 } |
357 } |
358 if (result > 0) { |
358 if (result > 0) { |
359 uint32_t code = net_recieve_code(opponent); |
359 uint8_t code = net_recieve_code(opponent); |
360 |
360 |
361 Move move; |
361 Move move; |
362 switch (code) { |
362 switch (code) { |
363 case NETCODE_TIMEOVER: |
363 case NETCODE_TIMEOVER: |
364 printw("\rYour opponent's time ran out - you win!"); |
364 printw("\rYour opponent's time ran out - you win!"); |