Giter Site home page Giter Site logo

dictator's Introduction

Dictator

Remake of old BASIC game 'Dictator' for Spectrum, devised and written by Don PRIESTLEY (DkTRONICS, 1983), rewritten in C by #kstn (2015).

There are no BASIC's surreallistic colours, but in other respects game is quite identical. So if you like to tousle you nostalgia it is written for you. ATM code is not very nice but works quite well.

Any feedback, ideas, fixes, bug reports are welcomed.


##INSTALLATION:

Clone the repository

$ git clone https://github.com/kastian/dictator.git

Make

$ make

For successful making you need "ncurses.h" so may be you'll need install it.

And run

./dictator

Or install it

$ sudo make install

Game consists only of one executable file so if you'll want to uninstall it you can use

$ sudo make uninstall

or just remove file

$ sudo rm $(which dictator)

dictator's People

Contributors

kastian avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

dp304

dictator's Issues

Being captured by guerillas doesn't set alive=0

If you try to escape on foot to Leftoto (revolution.c), the code checks if the guerillas were able to capture you:

void escape_to_leftoto()
{
  mvprintw(10,24,"   You have to get through the  ");
  mvprintw(12,24,"      MOUNTAINS to LEFTOTO      ");
  key();
  erase();
  mvprintw(11,24,"%s",
	   ( rand()%((GUERILLAS->strength / 3) + 2) ) ? /* Chanses 1/2..5 */
	   " The GUERILLAS are CELEBRATING  " :
	   " The GUERILLAS didn't catch you ");
  key();
}

But unless I am missing something, the code just prints the appropriate text depending on if your escape attempt succeeds, and doesn't have any other consequences. If you are captured by guerillas, it should set alive = 0 - game over.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.