-
Notifications
You must be signed in to change notification settings - Fork 0
/
medium.c
24 lines (21 loc) · 1.07 KB
/
medium.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* medium.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: abassibe <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2017/03/04 18:07:02 by abassibe #+# #+# */
/* Updated: 2017/03/04 18:07:08 by abassibe ### ########.fr */
/* */
/* ************************************************************************** */
#include "connect_four.h"
void medium_random_pick(void)
{
int random;
random = rand() % g_connect.input_w;
if (random == 0)
random++;
g_connect.insert_c = random + 1;
player_stack(ID_COMPUTER);
}