Starting a Game
The game is executed using CLIPS version 6.4 or higher.Start the game
Execute the command to begin playing:This command will reset the game state and start a new match.
The
(jugar) command internally calls (clear-window), (reset), and (run) to initialize the game state.Entering Moves
When it’s your turn to move the mouse, the game will prompt you for input.Move Input Format
You’ll be asked to enter two numbers:Example Move Sequence
Starting from position (1, 4), valid first moves for the mouse: Move to forward-right:From the starting position (1, 4), the mouse can only move forward since there are no diagonal squares behind it (row 0 doesn’t exist).
Reading the Board Display
After each move, the game displays an ASCII art representation of the board.Board Components
Row numbers: Displayed on the right side (1-8, bottom to top) Column numbers: Displayed at the bottom (1-8, left to right) Black squares (empty): Shown as dotsBoard Notation Reference
Internal notation used by the system:| Symbol | Meaning |
|---|---|
0 | White square (not playable) |
1 | Black square (empty, playable) |
4 | Black square with mouse |
5 | Black square with cat |
You won’t see these numbers during gameplay—they’re used internally by the CLIPS expert system. The ASCII art display shows the visual representation.
Gameplay Examples
Here’s what a typical game sequence looks like:Opening Move
After starting the game with(jugar), you’ll see the initial board with the mouse at (1, 4) and four cats at row 8.
Your input:
AI Response
After your move, the AI will automatically:- Analyze the board position
- Select the optimal cat to move
- Execute the cat’s move
- Display the updated board
- Prompt you for your next move
Mid-Game Position
As the game progresses, the cats will advance toward you:Common Error Messages
Position Out of Range
Position Out of Reach
Position Already Occupied
Tips for Playing
Plan ahead
Plan ahead
Think several moves ahead. The cats work together, so anticipate how they’ll coordinate to trap you.
Use the edges carefully
Use the edges carefully
Corner and edge positions can limit your escape options. Try to maintain access to multiple diagonal paths.
Remember cats can't move backward
Remember cats can't move backward
Once a cat passes a row, it can never return to that row. Use this to create safe zones.
Count available moves
Count available moves
Always ensure you have at least one legal move available. Getting trapped means instant defeat.