/desk.h (ec94b56574b9af77f79ccaafb655bb612eb53d97) (740 bytes) (mode 100644) (type blob)
#pragma once
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#define TRUE 1
#define FALSE 0
#define CHESS_ROWS 5
#define FIRST_POINT 0, 0
#define ROUTES_NUM 8
typedef struct CellStruct {
int8_t y,
x;
} Cell;
typedef enum CellPassedEnum {
NonChecked, Checked
} CellPassed;
typedef struct DeskStruct {
CellPassed desk[CHESS_ROWS][CHESS_ROWS];
} Desk;
/* desk */
Desk *create_desk();
void display_desk(Desk *d);
CellPassed check_desk_occupation(Desk *d, Cell cell);
void check_on_desk(Desk *d, Cell c);
void uncheck_from_desk(Desk *d, Cell c);
int desk_is_full(Desk *d);
Desk *debug_desk();
/* cell */
Cell new_cell(int8_t y, int8_t x);
void display_cell(Cell cell);
int equals_cell(Cell f_cell, Cell s_cell);
Mode |
Type |
Size |
Ref |
File |
100644 |
blob |
1550 |
b1ea7e22f35179ee784ab9c99458747feb424650 |
desk.c |
100644 |
blob |
740 |
ec94b56574b9af77f79ccaafb655bb612eb53d97 |
desk.h |
100644 |
blob |
1360 |
6816e7d19994306db3cf852a9f090f95e34e2403 |
history.c |
100644 |
blob |
476 |
38199885d7684c723fbbcaccf8d091aade89c8ee |
history.h |
100644 |
blob |
3094 |
be0866aa5f9c22e744eff0349553f448bbef4944 |
horse.c |
100644 |
blob |
349 |
8748aad4cd040fbd9b14511cddf4b1c02b23f92d |
horse.h |
100755 |
blob |
21408 |
2aef73b99a4de51c2522d016c83469c4e16aa170 |
main |
100644 |
blob |
1995 |
1753b92576bd7cc96bbe2a8f17818350c329a278 |
main.c |
100644 |
blob |
249 |
7ec9c7158f2be0b81304c6e783c86409e1e2b4cc |
makefile |
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"
Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/panaceya/ChessHorse
Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/panaceya/ChessHorse
Clone this repository using git:
git clone git://git.rocketgit.com/user/panaceya/ChessHorse
You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a
merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main