installation & usage

Get tmscli running in your terminal in seconds.

Install from PyPI

pip install tmscli

Once installed, the tms command becomes available in your terminal.

Command-line flags

Flag Short Default Description
--size -s 9 Set the board size to x (creates an x × x grid).
--mine_num -m 5 Set the number of mines to x.
--rules -r off Show the rules and controls before starting.

Examples

tms

Start with the default 9×9 board and 5 mines.

tms -s 16 -m 40

Start with a 16×16 board containing 40 mines.

tms --rules

Read the rules first, then start the game.

In-game commands

Once the board is printed, type a command and press enter. Each command takes three parts: an action followed by two coordinates.

Command Description
uc x y Uncover the square at (x, y).
fl x y Flag the square at (x, y).
uf x y Unflag the square at (x, y).

Board symbols

Coordinates

Coordinates are 1-indexed and must be within the board. The x axis runs down the board, and the y axis runs across:

  y------>
x
|
|
|
V

To obtain top scores

use command top_score for the default top 5

Alternatively, use top_score -s SCORES for the top SCORES amount of scores

Version note

v0.6.1 fixed most bugs that occured when using the leaderboard. Update with:

pip install --upgrade tmscli