br903 / cgames Goto Github PK
View Code? Open in Web Editor NEWGames for the Linux console
Home Page: http://www.muppetlabs.com/~breadbox/software/cgames.html
License: GNU General Public License v2.0
Games for the Linux console
Home Page: http://www.muppetlabs.com/~breadbox/software/cgames.html
License: GNU General Public License v2.0
The programs in this distribution are re-implementations of games for the Linux console. Three games are included with this distribution: * cblocks (sliding-block puzzles), * cmines (a minesweeper-based game), and * csokoban (sokoban). Alternate versions are included, which do not need to be played on the console. However, these versions lack the font-altered images and full mouse support. INSTALLING To build and install all the games, the usual incantation will suffice: ./configure ; make ; make install. Useful arguments to ./configure include: --bindir, which defaults to /usr/local/games, --mandir, which defaults to /usr/local/man, and --datadir, which defaults to /usr/local/share. In addition, you can use --with-ncurses to build the ncurses-based versions of the programs instead of the Linux console versions, and --disable-mouse to build the programs without mouse support. See the README files in each directory for more information. JUSTIFICATION One day I was playing Xsokoban when it struck me that this game clearly was originally created for a text terminal. Curious, I did some hunting around, and finally found one curses-based implementation of sokoban, a Linux 1.x port from Minix code (which in turn had been ported at least once before). I realized that the X version of the game had completely eclipsed its origins at the terminal. I'm not a big fan of GUIs for the sake of graphics. Pretty pictures are nice, but text mode is where I spend most of my time. And the Linux console has many extremely advanced features for a text terminal, yet I just don't see many programs taking advantage of them. I decided to rewrite some of my favorite games for the Linux console, so I could play them without X, pretty pictures and all. THE FINE PRINT The programs in this distribution are free software. The software is distributed under the terms of the GNU General Public License version 2 (or, at your option, any later version). See COPYING for specifics. Bug reports and other comments should be directed to myself. Share and enjoy. Brian Raiter <[email protected]> September, 2000
ERROR MESSAGE
command
make
output
fatal error: gpm.h: No such file or directory
#include <gpm.h>
^~~~~~~
compilation terminated.
: recipe for target 'userio.o' failed
make[1]: *** [userio.o] Error 1
make[1]: Leaving directory '/home/anikde/games/cgames-2.2b/cmines'
Makefile:28: recipe for target 'cmines-build' failed
make: *** [cmines-build] Error
Hi! :-)
Make returns this error message:
userio.c:41:17: fatal error: gpm.h: No such file or directory
#include <gpm.h>
^
compilation terminated.
<builtin>: recipe for target 'userio.o' failed
make[1]: *** [userio.o] Error 1
make[1]: Leaving directory '/home/giorgos/TEMPG/cgames-master/cmines'
Makefile:28: recipe for target 'cmines-build' failed
make: *** [cmines-build] Error 2
Now what? :-)
I'm on Debian Jessie (oldstable) x64 KDE.
PS. libgmp3-dev is already installed.
Cgames 2.2a on Debian Jessie x64 KDE.
Configure brings a warning:
>./configure
creating symlinks
configure: creating ./config.status
config.status: creating csokoban/Makefile
config.status: creating cmines/Makefile
config.status: WARNING: 'cmines/Makefile.in' seems to ignore the --datarootdir setting
config.status: creating cblocks/Makefile
>
After the installation, man page is under root (/man/man6).
Moving it manually to /usr/local/share/man/man6/, solves the problem.
So I was trying to install the package, the only thing I have different is that the file path (you can see in pastebin) is not the default, not sure if I need to actually change that or not. And I did disable the mouse because I will most likely be using it in tty6. Heres the pastebin! http://pastebin.com/j6t1GAdZ Thanks to anyone who can give me some answers.
Original.txt: Inappropriate ioctl for device
csokoban: Failed to initialize terminal.
I am running Ubuntu 13.10 and I compiled cgames with the options --disable-mouse
and --with-curses
.
I ran make
and sudo make install
cblocks
and cmines
work fine. When I run csokoban
, I get the following error:
Original.txt: Inappropriate ioctl for device
csokoban: Failed to initialize terminal.
I am unsure what is causing the error exactly. Any suggestions?
Now another one! :-)
Csokoban and Cblocks are failing to run (without ncurses).
>csokoban
Original.txt: Inappropriate ioctl for device
csokoban: Failed to initialize terminal.
>
and
>cblocks
Classics.txt: Inappropriate ioctl for device
cblocks: Failed to initialize terminal.
>
Ncurses version runs flawlessly.
Personally I prefer the ncurses version, but I'm reporting it anyway.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.