nbreversi
Play the text-based Reversi game
SYNOPSIS
nbreversi [-c] [-l level] [-i]
PARAMETERS
-c
Computer always plays first.
-l level
Set the computer's level of play, where level is a number from 1 (easiest) to 9 (hardest).
-i
Switch black and white pieces for the human player.
DESCRIPTION
nbreversi is a text-based implementation of the popular board game Reversi (also known as Othello). Written using the ncurses library, it provides a simple yet engaging way to play Reversi in a terminal environment. The game is played on an 8x8 grid, with two players (usually one human and one computer) taking turns placing pieces. The goal is to have more of your color pieces on the board than your opponent when no more valid moves are possible. nbreversi offers a basic interface for move selection and displays the current state of the board. It's a lightweight application, ideal for playing a quick game without requiring a graphical interface.
GAMEPLAY
The game presents a numbered grid, allowing the player to select a row and column (e.g., '2 3') to make their move. The game provides feedback on valid and invalid moves. The computer's moves are displayed automatically.
SCORING
The current score for each player (black and white) is displayed during the game. The final score is displayed upon completion.
AI DIFFICULTY
The `-l` option allows you to adjust the skill of the computer opponent. Higher levels generally result in stronger play and longer computation times for each move.
SEE ALSO
reversi(6)