One pile, or several (pick under "Piles"). On your turn take an amount from the allowed set $S$ (pick it under "Take") from one pile. No more, no less, and nothing in between. Whoever cannot move loses (with 1–3 or 1–5, that means taking the last chip wins).
\begin{proposition}\label{prop:mod}If you may take $1, 2, \dots, k$, the player to move loses exactly when the pile is a multiple of $k + 1$.\end{proposition}
\begin{proof}From a multiple of $k+1$, any take of $t$ leaves a remainder $k + 1 - t \in \{1, \dots, k\}$, which the opponent removes on the next move. From anything else, take the remainder mod $k+1$. The pile $0$ is a multiple and the player to move has lost.\end{proof}
For a general subtraction set $S$, call $n$ a P-position when no move from $n$ reaches a P-position ($0$ is one). Computing this bottom up always gives an eventually periodic pattern.
\begin{example}For $S = \{1, 3, 4\}$ the losing piles are $n \equiv 0, 2 \pmod 7$. For $S = \{2, 5, 6\}$ you cannot take $1$, so a pile of $1$ is already stuck: the losing piles are $n \equiv 0, 1, 4, 8 \pmod{11}$.\end{example}
\begin{remark}By Sprague–Grundy each pile has a Grundy value $G(n) = \operatorname{mex}\{G(n - s) : s \in S\}$, and several piles combine by nim-sum: the player to move loses exactly when $G(n_1) \oplus G(n_2) \oplus \cdots = 0$. Try three piles.\end{remark}