Nim Game

EasyMathBrainteaserGame Theory

Solution

export function canWinNim(n: number): boolean {
  return n % 4 !== 0;
}