Skip to content
Snippets Groups Projects
Commit f8fe4e39 authored by anthony.bouillan's avatar anthony.bouillan
Browse files

Small adjustments

parent 5836e139
No related branches found
No related tags found
No related merge requests found
......@@ -24,7 +24,7 @@ bool validate_arguments(char const* argv[], int* game_mode, int* row_count, int*
int main(int argc, char const* argv[]) {
if (argc != 4) {
print_usage(argv[0]);
return false;
return EXIT_FAILURE;
}
int game_mode, row_count, col_count;
......
......@@ -19,13 +19,10 @@ int destroy_board(int rows, int** board) {
void print_board(int rows, int cols, int** board) {
for (int row = -1; row <= rows; row++) {
if (row == -1) {
// Top border of the board
printf("\n┌");
} else if (row == rows) {
// Bottom border of the board
printf("└");
} else {
// Print left vertical border
printf("│");
}
......
#ifndef _TEST_BOARD_H_
#define _TEST_BOARD_H_
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <string.h>
#include "board.h"
#include "../test_puissance4.h"
......
#ifndef _TEST_COMPUTER_H_
#define _TEST_COMPUTER_H_
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <string.h>
#include "computer.h"
#include "../game/game.h"
#include "../test_puissance4.h"
......
#ifndef _GAME_H
#define _GAME_H
#ifndef _GAME_H_
#define _GAME_H_
#include <stdbool.h>
#include <stdio.h>
......
#ifndef _TEST_GAME_H_
#define _TEST_GAME_H_
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <string.h>
#include "game.h"
#include "../computer/computer.h"
#include "../test_puissance4.h"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment