Avoid the repetitive calling of the same method

generally in statement if-ifelse-else

  if (check a condition is true?)
 {
   moveOnColumn(iCanWin()); //do something
 }
 else if (other condition is true?) 
 {
    moveOnColumn(theyCanWin(0, 0, false)); //do something
  else//otherwise
  {
    moveOnColumn(brilliantMove());  //if previous condition doesn't be true
  almost one of them this line go to be execute
 }

Leave a Comment