Code: Select all
Cut ...
Moderator: Board moderators
Code: Select all
Cut ...
Code: Select all
if(maze[i-1][j]=='T' || maze[i][j-1]=='T' || maze[i+1][j]=='T' || maze[i][j+1]=='T')
{
maze[i][j] = 0;
}
Code: Select all
else if(maze[i][j-1]=='L')
{
_count++;
Code: Select all
Cut ...
Code: Select all
4 4
####
#TP#
#GG#
####
Code: Select all
removed
Code: Select all
8 4
########
#.T.TGT#
#.G..P.#
########
7 8
#######
#P...T#
#...G.#
#G.T..#
#.....#
#G..T.#
#.....#
#######
Code: Select all
1
2
Code: Select all
removed
Code: Select all
6 5
######
#TG..#
#TG.G#
#TGPG#
######
Code: Select all
5