Skip to content

alexdantas/nFlood

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

       _______ __                __
.-----|    ___|  .-----.-----.--|  |
|     |    ___|  |  _  |  _  |  _  |
|__|__|___|   |__|_____|_____|_____|

nFlood is a simple clone of the Flood-It puzzle game.

You need to fill the whole board with a single color. To do that, alternate between them, flooding with the minimum number of moves possible.

It's played on the terminal, with text-based interface via nCurses.

Heavily based on those three online games.

Usage

Make sure you have libncurses5-dev.

Then, simply download (or git clone it) and make it

$ make
$ make run

Options

Options Actions Defaults
-h, --help Shows help message
-v, --version Shows game version and build date
-W <WIDTH>, --width <WIDTH> Sets width of the game board 14
-H <HEIGHT>, --height <HEIGHT> Sets height of the game board 14
-c, --center Centers the game board

Screenshots

screen2

screen1

Controls

Keys Actions
Mouse Click Changes the flood color
Numbers (1~6) Changes the flood color
q Quits the game at any time
r Resets the game board
c Toggles centering the game board

High scores

The high scores file is stored at ~/.local/share/nflood/nflood.scores.

The game only ranks your score when you are playing at default board size, that is 14x14.

Authors

License

This is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

About

Simple clone of the Flood-It puzzle game, on the terminal with nCurses.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors