Skip to content
/ 5x5 Public
forked from 8dcc/5x5

Simple CLI 5x5 game for fs-os

License

Notifications You must be signed in to change notification settings

fs-os/5x5

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

5x5

Simple CLI 5x5 game made in C.

Description

Note This is a fork of 8dcc/5x5 for fs-os. You can try it there by running the 5x5 command.

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 (unsupported)
        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

Languages

  • C 100.0%