Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include "header.h"
- int i,j,k;
- int main(){
- FIELD f;
- for(i=0;i<7;i++){
- for(j=1;j<8;j++){
- init_field(&f,j);
- for(k=0;k<11;k++){
- printf("%c",f.matrix[i][k]);
- }
- }
- putchar('\n');
- }
- }
- void init_field(FIELD *p, int n){
- switch(n){
- case 1:
- *p=BLACK_FIELD;
- break;
- case 2:
- *p=WHITE_FIELD;
- break;
- case 3:
- *p=CRNI_PAWN;
- break;
- case 4:
- *p=BIJELI_PAWN;
- break;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement