summaryrefslogtreecommitdiffstats
path: root/src/game.h
blob: 25d509bf4922f7c4687a656de04a8ecdf6a6f310 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef GAME_H
#define GAME_H

#include "player.h"
#include "ball.h"

struct game {
	struct player *players[2];
	char running;
	char min_balls;
	char cur_balls;
	struct ball *balls_head;
};

struct game *new_game(char balls);
void free_game(struct game *g);
void run_game(struct game *g);

#endif