Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void zmien_wartosc(pole **plansza, char znak, int x, int y)
- {
- plansza[x][y].wartosc = znak;
- }
- void wyp_planszy(int size, pole **plansza) //wypelnia plansze poczatkowo
- {
- for (int i = 0; i < size; i++)
- {
- for (int j = 0; j < size; j++)
- {
- if (i == 0 || i == size - 1 || j == 0 || j == size - 1)
- {
- plansza[i][j].wartosc = '*';
- }
- else if(plansza[i][j].wartosc != '1')
- {
- plansza[i][j].wartosc = '.';
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement