In the game of 23 Matches, you start with 23 Matches lying on a table. On each turn, you may take 1, 2, or 3 matches. you alternate moves with the computer and the one who has to take the last match loses.
The game is published as type-in source code in Basic Computer Games (Microcomputer Edition), ed. David H. Ahl with Steve North, Workman Publishing, New York, 1978 (ISBN 0-89480-052-3).
The BASIC source code listing is published in Microsoft BASIC 3.0; suggestions for conversion to a wide range of other BASIC implementations are provided.