-
Notifications
You must be signed in to change notification settings - Fork 3
/
win.c
21 lines (19 loc) · 1.1 KB
/
win.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* win.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: tblaase <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/10/07 16:12:06 by tblaase #+# #+# */
/* Updated: 2021/10/08 15:34:07 by tblaase ### ########.fr */
/* */
/* ************************************************************************** */
#include "so_long.h"
void ft_win(t_data *data)
{
printf("Congratulations, you found all the Diamonds and the exit.\n");
printf("You won!\n");
printf("Is %d moves really the best you can do?\n", data->counter);
exit(EXIT_SUCCESS);
}