Tobis Programm forked to not destroy your golden files
Fork of Robocode by
Diff: source/Mapping.cpp
- Revision:
- 130:670a954495bf
- Parent:
- 129:0f60bf9640bb
- Child:
- 132:8ae08f41bb43
diff -r 0f60bf9640bb -r 670a954495bf source/Mapping.cpp --- a/source/Mapping.cpp Mon May 15 11:48:05 2017 +0000 +++ b/source/Mapping.cpp Mon May 15 13:03:16 2017 +0000 @@ -132,28 +132,7 @@ } } -//****************************************************************************** -/** - * prints map defined by list - * 0 = obstacle_list - * 1 = open_list - * 2 = target_list - * very slow, shouldn't be called in final code - * by Claudio Citterio -**/ -void print_map(int list) -{ - // Debug function for printing the obstacle matrix on putty. - for (int y = 0; y < col; y++) { - for (int x = 0; x < row; x++) { - if(list == 0)printf("%d ", obstacle_list[y][x]); - if(list == 1)printf("%d ", open_list[y][x]); - if(list == 2)printf("%d ", target_list[y][x]); - } - printf("\r\n"); - } - printf("\r\n"); -} + //****************************************************************************** /**