public bool ConditionDown(Player player, Block block) { if (player.Name == "Player_Server") { for (int i = 0; i < block.Row1; i++) { for (int j = 0; j < block.Column1; j++) { if (block.Arr[i, j] == 1) { if (block.ConditionDown(block.IBoard + i, block.JBoard + j) == false || board.MapPlayServer1[block.IBoard + i + 1, block.JBoard + j] == 1) { return(false); } } } } return(true); } else { for (int i = 0; i < block.Row1; i++) { for (int j = 0; j < block.Column1; j++) { if (block.Arr[i, j] == 1) { if (block.ConditionDown(block.IBoard + i, block.JBoard + j) == false || board.MapPlayClient1[block.IBoard + i + 1, block.JBoard + j] == 1) { return(false); } } } } return(true); } }
public bool ConditionDown(Block block) { for (int i = 0; i < block.Row1; i++) { for (int j = 0; j < block.Column1; j++) { if (block.Arr[i, j] == 1) { if (block.ConditionDown(block.IBoard + i, block.JBoard + j) == false || board.MapPlayGame1[block.IBoard + i + 1, block.JBoard + j] == 1) { return(false); } } } } return(true); }