Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 29 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,38 @@ t3core-cli

- Two-player Tic Tac Toe in the terminal
- Interactive menu with settings
- Colored symbols and styled board
- Optional arrow-key navigation in interactive terminals
- Colored symbols and styled board, with styling toggle
- Sound toggle and reset-to-default settings
- Move history view and rollback support
- Optional game info panel
- Win and draw detection
- Play again prompt

## Controls

### Menu

- `1` starts a new game.
- `2` opens settings.
- `3` exits.

### Game

- Enter a field number from `1` to `9` to place a move.
- When arrow-key navigation is enabled, use arrow keys to choose a field and `Enter` to confirm.
- Press `h` to show or hide move history after at least one move.
- Press `i` to show or hide game info.
- Press `q` to return to the main menu. In arrow-key mode, `Esc` and `Backspace` also return to the menu.

### Settings

- `1` toggles sound.
- `2` toggles styling.
- `3` toggles arrow-key navigation when the terminal supports it and styling is enabled.
- `4` resets settings to default.
- Press `q` to return to the main menu. In arrow-key mode, `Esc` and `Backspace` also return to the menu.

## Requirements

- Node.js >= 16.0.0
Expand Down
93 changes: 0 additions & 93 deletions _plans/board-ui-upgrade.md

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const getHistoryInstruction = () => {
const useArrowKeys = keyHandler?.running;

return useArrowKeys
? "SelectPrevious move"
? "Select previous move"
: `Back to previous move from 0 to ${game.movesCount}.
(0 is start from the beginning)`;
};
Expand Down
Loading