-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.c
35 lines (31 loc) · 860 Bytes
/
main.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
25
26
27
28
29
30
31
32
33
34
35
/*
* main.c
*
* Created on: Nov 28, 2015
* Author: gena
*/
//---Standard header files---
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include "BoardPrinting.h"
//---PreDefiners----
#define N 8
//---Global variables---
int x,y; //Board's Coordinates
char board[N][N]={ //Two dimensional array for representing chess boar
{'R','N','B','Q','K','B','N','R'},
{'P','P','P','P','P','P','P','P'},
{' ',' ',' ',' ',' ',' ',' ',' '},
{' ',' ',' ',' ',' ',' ',' ',' '},
{' ',' ',' ',' ',' ',' ',' ',' '},
{' ',' ',' ',' ',' ',' ',' ',' '},
{'p','p','p','p','p','p','p','p'},
{'r','n','b','q','k','b','n','r'}};
//------------------------------------------------------------------------
//----MAIN FUNCTION-----
int main()
{
BoardPrinting(board);// function that prints chess board
return 0;
}// end main function