Game of Nim with removal of one stone allowed | Return true if player A wins , return false if player B wins . ; Checking the last bit of N . ; Driver code
function findWinner ( N ) { return N & 1 ; } let N = 15 ; if ( findWinner ( N ) == 1 ) document . write ( " " ) ; else document . write ( " " ) ;