Giter Club home page Giter Club logo

flood's Introduction

goal

Flood fill puzzle game implemented in bash.

The flooded field consist of all identically colored tiles connected to the one in the top-left corner. This area is extended by changing the color of the flooded patch, absorbing all neighbouring tiles with the new color. The game is won by flooding the entire board within the indicated maximum number of turns.

command line options

flood [-ht] [-b boardsize] [-c nrcolors] [-l layout] [-s seed]

  -h,--help    display this help text
  -t,--tight   use tight board layout

  -b,--board   integer in set 4:2:26 representing the board size
  -c,--colors  integer in set 3:8 representing the nr of colors
  -l,--layout  string in the set {colors, letters, numbers} representing
               the board layout
  -s,--seed    integer seed for the pseudo-random number generator

in-game key mappings

game board

Key Action
r,1 change color to red
g,2 change color to green
y,3 change color to yellow
b,4 change color to dark blue
m,5 change color to magenta
c,6 change color to cyan
d,7 change color to dark gray
w,8 change color to light blue
h,left move selection left
l,right move selection right
j,enter,space,tab apply selection
u undo previous change
e enter seed
a replay game
n new game
q quit game
z continue beyond GAME OVER
s change settings
i display goal
x redraw screen
? display key bindings

settings menu

Key Action
h,left move selection left
l,right move selection right
j,down move to next settings item
k,up move to previous settings item
a,enter,space,tab apply changes
x discard changes
? display key bindings
q quit game

flood's People

Contributors

ratnamhof avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.