1
0
Fork 0
A package of 18 text-based modern games.
Go to file
me b7530749f7 esc exits 2023-03-13 18:46:50 +03:30
man adding nb* names 2021-08-05 03:29:10 +04:30
LICENSE CC0 2021-08-16 19:23:53 +04:30
Makefile added new games 2022-11-16 17:35:20 +03:30
README.md esc exits 2023-03-13 18:46:50 +03:30
battleship.c putting dependencies in common.h 2022-07-01 10:45:34 +04:30
checkers.c putting dependencies in common.h 2022-07-01 10:45:34 +04:30
common.h Write scores to a tmp file first, then rename it over the original score file. 2023-02-03 00:27:32 -05:00
config.h fixing various warnings 2021-07-18 22:33:20 +00:00
darrt.c esc exits 2023-03-13 18:46:50 +03:30
fifteen.c putting dependencies in common.h 2022-07-01 10:45:34 +04:30
fisher.c putting dependencies in common.h 2022-07-01 10:45:34 +04:30
jewels.c putting dependencies in common.h 2022-07-01 10:45:34 +04:30
memoblocks.c use common.h 2022-11-24 02:54:21 +03:30
miketron.c putting dependencies in common.h 2022-07-01 10:45:34 +04:30
mines.c Fix some minor warnings from clang 2023-02-03 00:24:58 -05:00
mkfile let's hope it works on plan9 2022-12-17 09:02:48 +03:30
muncher.c putting dependencies in common.h 2022-07-01 10:45:34 +04:30
nbsdgames.c Fix some minor warnings from clang 2023-02-03 00:24:58 -05:00
nbsdgames.desktop menu icon 2022-02-02 04:02:27 +03:30
nbsdgames.svg menu icon 2022-02-02 04:02:27 +03:30
pipes.c putting dependencies in common.h 2022-07-01 10:45:34 +04:30
rabbithole.c use common.h 2022-11-24 02:54:21 +03:30
redsquare.c Fix some minor warnings from clang 2023-02-03 00:24:58 -05:00
revenge.c add revenge 2022-08-18 03:54:10 +04:30
reversi.c use common.h 2022-11-24 02:54:21 +03:30
sjump.c Fix some minor warnings from clang 2023-02-03 00:24:58 -05:00
snakeduel.c putting dependencies in common.h 2022-07-01 10:45:34 +04:30
sos.c putting dependencies in common.h 2022-07-01 10:45:34 +04:30
sudoku.c common.h 2022-11-16 17:54:48 +03:30
trsr.c Fix some minor warnings from clang 2023-02-03 00:24:58 -05:00
tugow.c putting dependencies in common.h 2022-07-01 10:45:34 +04:30

README.md

New BSD Games

You have a computing machine from 1980's and you wonder how you can use it?
You are a bored sysadmin with no work, and need to kill time looking busy with terminal?
You have Plan9 dual-booted with OpenBSD and have kept the OpenBSD just for gaming?
You have to make a Reversi AI for your homework and you don't know where to copy it from?
Your port of Linux to a fancy platform has no GUI, but you still want nice screenshots?
You have been so excited about the bsdgames, but have grown tired of playing tetris, snake and robots for billions of times?
Are you feeling that betrayed you by bundling stuff like phantasia in a package you expected to contain GAMES?
Did you come here thinking it is bsdgames?

Don't worry anymore as you've got nbsdgames now!

The games include:

  • Jewels (A game with a gameplay kinda similiar to that of Tetris, NOT my invention)
  • Sudoku
  • Mines (Minesweeper)
  • Reversi
  • Checkers
  • Battleship
  • SOS
  • Rabbithole (A maze-exploring game where you have to gather items from all around the maze rather than reaching an end, the idea maybe mine)
  • Pipes (Same as the famous Pipe Mania)
  • Fifteen
  • Memoblocks (or Memory blocks. A similar game was included in Windows 7)
  • Fisher
  • Muncher
  • Miketron
  • Redsquare (Conway's Game of Life made playable!)
  • Darrt (with original gameplay!)
  • Snakeduel
  • Tugow (Numpad practice game)

The difficulty and/or dimensions are adjustable through simple command line options, you can play a minesweeper game that take hours to complete, or exprience hexadecimal sudoku and 8x8 fifteen-like puzzles!

Or just enter "nbsdgames" at your terminal to get a fancy menu and play all sorts of games from there.

Play on xterm for best experience.

Prerequisites

  • git (optional)
  • POSIX make (optional)
  • A C compiler with C99 enabled
  • The standard library
  • ncurses (libncurses5-dev if you are on debian-based distros)

To install them all on debian-base :

        sudo apt install git make gcc libncurses5-dev

How to run

  1. Download the files
  2. Go to the sources directory
  3. Install

Like this:

        git clone https://github.com/abakh/nbsdgames
        cd ./nbsdgames
        make
        sudo make install # or use the binaries already compiled

Packages

It's on almost every repo by now: Debian (and other DEBs), OpenSUSE (and other RPMs), AUR, Alpine, FreeBSD, NetBSD, DragonflyBSD, Minix, Homebrew (MacOSX) and more https://repology.org/project/nbsdgames/versions

Thanks to Elias Riedel Gårding, Zinjanthropus, Gürkan Myczko, Robert Clausecker, Sam James, and so many other nice people for packaging.

They also gave back code and useful feedback.

Other Platforms

They are known to work on Windows as well (using PDCurses, thanks to Laura Michaels for providing advice).

They have been ported to Plan9 thanks to Jens Staal!

Thanks to PDCurses they even work on DOS and every platform with SDL.

They should theoretically work on OS/2 as well but I have not verified that yet.

Dependencies

  • git (optional)
  • POSIX make (optional)
  • A C compiler with C99 enabled
  • The standard library
  • ncurses (libncurses5-dev if you are on debian-based distros)

To install them all on debian-base :

        sudo apt install git make gcc libncurses5-dev

How to build

  1. Download the files
  2. Go to the sources directory
  3. Install

Like this:

        git clone https://github.com/abakh/nbsdgames
        cd ./nbsdgames
        make
        sudo make install # or use the binaries already compiled

How do these look like

Linux+xterm+tmux Screenshot from 4 games in tmux

Plan9 Screenshot from the games in Plan9

Windows Screenshot from the games in Windows 7

How to contribute

  • Share these with your friends and others
  • Your stars make the repo more findable in Github
  • Tell me your feature requests, bug reports, etc.
  • Tell me the games you want to be added (but in the same genre, I can't port Angry Birds to curses! :)
  • Make a package for your distro (or put it on repos if the package is not there)
  • Tell distro developers to consider adding these as default games, nbsdgames packs a lot of fun games in a few hundreds of kilobytes.
  • Compile these with ASAN, play and find C-ish bugs.

Also thanks to all the people who helped in the previous versions, all what I requested was done! I didn't expect such an amount of assistance on this project ❤️