Skip to content

Commit

Permalink
Update move.cpp
Browse files Browse the repository at this point in the history
Changed show_grid function location to 'grid.cpp' instead of 'move.cpp'
  • Loading branch information
AnasImloul authored Jun 3, 2022
1 parent c1cfe17 commit 161cec5
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions move.cpp
Original file line number Diff line number Diff line change
@@ -1,18 +1,7 @@
#include<vector>


#ifndef SHOW
#define SHOW

void show_grid(const long *grid, int rows, int columns){
std::string result = "";
for (int i = 0; i<rows*columns; i++){
result = result + std::to_string(grid[i]) + (((i==0 && columns != 1) || (i+1)%columns) ? " " : "\n");
}
std::cout << result;
}

#endif

#ifndef MOVE
#define MOVE
Expand Down

0 comments on commit 161cec5

Please sign in to comment.