Skip to content

8dcc/5x5

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

5x5

Simple CLI 5x5 game made in C.

Description

This simple project was inspired by the 5x5 emacs command.

Building

$ git clone https://github.com/8dcc/5x5
$ cd 5x5
$ make
...

Usage

$ ./5x5.out --help
Usage:
    ./5x5.out                   - Launch with default resolution and scale
    ./5x5.out --help            - Show this help
    ./5x5.out -h                - Same as --help
    ./5x5.out --keys            - Show the controls
    ./5x5.out -k                - Same as --keys
    ./5x5.out --resolution WxH  - Launch with specified resolution (width, height)
    ./5x5.out -r WxH            - Same as --resolution
    ./5x5.out --scale VxH       - Launch with specified scale (vertical, horizontal)
    ./5x5.out -s VxH            - Same as --scale

$ ./5x5.out --keys
Controls:
    <arrows> - Move in the grid
        hjkl - Move in the grid (vim-like)
     <space> - Toggle selected cell (and adjacent)
           r - Generate random grid
           c - Generate a cheat grid
           q - Quit the game