CodePen

HTML

            
              
            
          
!

CSS

            
              
            
          
!

JS

            
              function validEntry(stones, stonesTaken) {
    if (stones >= stonesTaken) {
        if(stonesTaken <= 3 && stonesTaken > 0) {
            return true;
        } else {
            return false;
        }
    } else {
        return false;
    }
}
document.write(validEntry(3,2));
            
          
!
999px
Loading ..................