Name

rantaiwarna — tile-matching puzzle game

Synopsis

rantaiwarna [ -c colors ] [ -w width ] [ -h height ]

Description

rantaiwarna is a tile-matching puzzle game which is also known under the names Chain Shot! or SameGame. It is played on a rectangular board which is initially filled with elements of several different colors. Two or more adjacent elements of the same color may be eliminated, the score resulting from the elimination of elements depends on the number of elements eliminated at once. The goal of the game is to eliminate as many elements as possible until there are no more adjacent elements of the same color left or the board is completely cleared. Vertical gaps resulting from the elimination of elements are filled by sliding down elements from above the gap, column gaps are filled by sliding columns on the right side of the column gap to the left.

Options

The following options are supported:

-c color

Use the specified number of colors, at least two and at most five.

-w width

Create a board with the given width, at least five elements.

-h height

Create a board with the given height, at least five elements.

Usage

rantaiwarna makes use of the curses(3) library and determines the terminal's capabilities using its terminfo(5) entry. Certain keyboard and mouse commands may not be available depending on the terminal and the variant of the curses(3) library rantaiwarna was built against.

Game Screen Commands

, , ,

move the cursor around

h, j, k, l

same as arrow keys

Space

eliminate elements under the cursor

Enter

same as Space

Left mouse button

same as Space

Ctrl+l

refresh the screen

H

switch to the help screen

i

switch to the highscore screen

n

start a new game

q

quit the game

Highscore Screen Commands

, , ,

scroll on line up or down or one character to the left or right

h, j, k, l

same as arrow keys

Space

scroll down one line

Enter

same as Space

Page ↑, Page ↓

scroll up or down one screenful

b, f

same as Page ↑ or Page ↓

Ctrl+b, Ctrl+f

same as Page ↑ or Page ↓

Home, End

go to the first or last line

g, G,

same as Home or End

Ctrl+l

refresh the screen

a

switch to the game screen

H

switch to the help screen

q

quit the game

Help Screen Commands

, , ,

scroll on line up or down or one character to the left or right

h, j, k, l

same as arrow keys

Space

scroll down one line

Enter

same as Space

Page ↑, Page ↓

scroll up or down one screenful

b, f

same as Page ↑ or Page ↓

Ctrl+b, Ctrl+f

same as Page ↑ or Page ↓

Home, End

go to the first or last line

g, G,

same as Home or End

Ctrl+l

refresh the screen

a

switch to the game screen

i

switch to the highscore screen

q

quit the game

Files

$HOME/.rantaiwarna_hiscore

personal highscore file

Exit Status

The following exit values are returned:

0

Command successfully executed.

> 0

An error has occured.