2019-03-21 10:55:03 -04:00
# New BSD Games
2019-03-21 11:19:33 -04:00
*You have a computing machine from 1980's and you wonder how you can use it? < br / >
You deal with a GUI-less machine at work and are looking for ways to kill time? < br / >
2019-05-13 10:43:21 -04:00
You are the DSL developer and have cancelled the project because you lacked games? < br / >
You have to make a Reversi AI for your homework and you don't know where to copy it from? < br / >
You have been so excited about the bsdgames, but have grown tired of playing tetris, snake and robots for billions of times? < br / >
2019-07-30 15:54:58 -04:00
You feel they have betrayed you by bundling stuff like phantasia with a package you expect to contain GAMES?* < br / >
2019-05-13 10:43:21 -04:00
2019-03-20 10:49:23 -04:00
2019-03-20 10:57:14 -04:00
**Don't worry** anymore as you've got nbsdgames now!
2019-03-20 10:16:33 -04:00
2019-08-17 16:42:16 -04:00
I originally made these in hope of them becoming added to NetBSD (but the few i talked to preferred to have games in the repositories rather than in /usr/games itself).
2019-03-20 10:16:33 -04:00
These include:
2019-03-20 14:01:58 -04:00
* Jewels (A game with a gameplay kinda similiar to that of Tetris, NOT my invention)
* Sudoku
* Mines (Minesweeper)
* Reversi
* Checkers
* Battleship
* SOS
2019-04-02 18:50:41 -04:00
* 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)
2019-03-20 14:01:58 -04:00
* Pipes (Same as the famous Pipe Mania, unplayable on the environments that don't support the line characters)
2019-05-13 09:58:19 -04:00
* Fifteen
* Memoblocks (or Memory blocks. A similar game was included in Windows 7)
2019-08-05 09:55:54 -04:00
2019-08-17 16:42:16 -04:00
## Features
* Modern looking TUI
* Color
* Mouse support
* Multiplayer (not network)
* Each game containing help pages on the controls and the gameplay
* Very permissive license (Public Domain equivalent)
* Clean code with documentation
* Small size, with the deb package being less than 50 KB as I write this
* Low in dependencies and very simple build, even in comparison to bsdgames
* Low in CPU usage (Low if you are playing against AI, virtually nothing otherwise)
* Low as possible in memory footprint
* Diversity, you will like one at least
* Portability
* Flexiblity
They natively run on Linux, BSD, MacOS and are known to work on Windows as well (using PDCurses, thanks to Laura Michaels for providing advice).
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!
2019-03-21 10:55:03 -04:00
## Prerequisites
2019-03-20 10:16:33 -04:00
2019-04-02 22:18:10 -04:00
* git (optional)
2019-03-21 11:23:14 -04:00
* POSIX make (optional)
2019-03-20 10:16:33 -04:00
* A C compiler with C99 enabled
* The standard library
2019-08-17 16:42:16 -04:00
* ncurses (libncurses5-dev if you are on debian-based distros)
2019-03-20 10:16:33 -04:00
2019-03-21 10:55:03 -04:00
## How to run
2019-03-21 10:28:37 -04:00
2019-03-20 10:16:33 -04:00
1) Download the files
2) Go to the sources directory
3) Set the environment variable PREFIX to the address you want them to be in
4) Install
Like this:
2019-03-21 10:28:37 -04:00
``` sh
2019-05-13 09:58:19 -04:00
git clone https://github.com/untakenstupidnick/nbsdgames
2019-08-17 16:42:16 -04:00
cd ./nbsdgames/sources
2019-03-20 14:01:58 -04:00
export PREFIX= ~/bin
make install
2019-03-21 10:28:37 -04:00
```
2019-03-20 14:01:58 -04:00
2019-04-03 15:23:41 -04:00
Also, If you are on a debian-based OS on a 64-bit PC you can download the deb package and simply install it with dpkg or apt.
2019-05-13 10:41:18 -04:00
the deb package: https://github.com/untakenstupidnick/nbsdgames/releases/download/v2.0/nbsdgames_amd64.deb
2019-04-02 18:42:11 -04:00
2019-04-06 22:58:59 -04:00
It's available on AUR thanks to Elias Riedel Gårding: https://aur.archlinux.org/packages/nbsdgames-git/
2019-04-06 23:21:17 -04:00
(The commands start with nbsd_ to avoid conflict)
2019-04-07 03:08:31 -04:00
2019-08-05 09:55:54 -04:00
It's been made available for openSUSE thanks to Jan Brezina: https://build.opensuse.org/package/show/home:Zinjanthropus/nbsdgames
2019-03-21 10:55:03 -04:00
## How do these look like
2019-03-21 10:28:37 -04:00
![Screenshot from 4 games in tmux ](https://raw.githubusercontent.com/untakenstupidnick/new-bsd-games/master/screenshot.png )
2019-03-20 14:01:58 -04:00
2019-03-20 10:16:33 -04:00
2019-04-02 19:58:22 -04:00
## How to contribute
2019-05-13 10:41:18 -04:00
Oh, so kind! You can...
2019-04-02 19:58:22 -04:00
* Share these with your friends
2019-08-17 16:42:16 -04:00
* Tell me your feature requests, bug reports, games you want to be added etc. (Think of games in spirit of those already included and look if there is not a good terminal game for it already)
2019-05-13 10:41:18 -04:00
* Make a package for your distro (or put it on repos and tell me afterwards)
2019-05-13 09:58:19 -04:00
* Tell me if you're interested in porting it to non-Unix (Possible in theory since there is PDCurses for SDL, and SDL for everything)
2019-08-17 16:42:16 -04:00
* With mouse support, PDCurses, SDL and NDK existing, now it is possible to port it to Android proper, feel free to tell me if you are doing it.
* Pull requests are of course, welcome too!