Compare commits

...

5 Commits

Author SHA1 Message Date
creme 90eb04a45f
update to 1.4.2 2020-02-13 01:01:35 +01:00
creme ac469ff3cf
change company names to default 2020-02-13 00:51:12 +01:00
creme 0b19f36306
revert to default game settings 2020-02-12 13:38:51 +01:00
creme 9b40f1080d
update to version 1.4.0
- remove trailing spaces
2020-02-11 18:32:43 +01:00
creme f170a6bf9a Merge branch 'master' of jan6/starlanes into master 2020-02-11 12:05:00 -05:00
8 changed files with 134 additions and 127 deletions

View File

@ -39,8 +39,3 @@ fakeinstall:
@echo chown root:root $(INSTALLDIR)/man/man6/starlanes.6
@echo chmod 755 $(INSTALLDIR)/bin/starlanes
@echo chmod 444 $(INSTALLDIR)/man/man6/starlanes.6

4
README
View File

@ -8,7 +8,8 @@ I removed the AI, at least for now
(feel free to add it back if you figure out how to properly fix it)
I also changed the company names slightly, and adjusted the stats for no reason
most importantly, after experiencing troubles where someone accidentally closed
the final stats screen, I modified it to only close when pressing Y (doesn't matter if lower or uppercase)
the final stats screen, I modified it to only close when pressing Y (doesn't
matter if lower or uppercase)
there are still plenty of warnings left to fix,
but they don't affect the gameplay
@ -50,4 +51,3 @@ first published in Creative Computing magazine.
-Beej
beej@ecst.csuchico.edu

1
ai.c
View File

@ -22,7 +22,6 @@
#include "common.h"
/*
int move;
char map[120]; */

View File

@ -1,3 +1,17 @@
Version 1.4.2 released 2020 by ~creme
creme@envs.net
change company names to default
Version 1.4.1 released 2020 by ~creme
creme@envs.net
change game-settings to default
Version 1.4.0 released 2020 by ~jan6
jan6@tilde.ninja and jan6@envs.net

View File

@ -13,24 +13,24 @@
** along with this program;
*/
#define OFFMAP '-' /* space character */
#define OFFMAP '-' /* space character */
#define SPACE '.' /* space character */
#define NEWCO '+' /* new company character */
#define STAR '*' /* star character */
#define BLACKHOLE '@' /* black hole character */
#define NUMCO 5 /* number of companies (don't change) */
#define INIT_CO_COST 90 /* initial company start cost */
#define FOUNDER_BONUS 10 /* founder gets this much stock */
#define NUMMOVES 6 /* number of moves options a player gets */
#define INIT_CO_COST 100 /* initial company start cost */
#define FOUNDER_BONUS 5 /* founder gets this much stock */
#define NUMMOVES 5 /* number of moves options a player gets */
#define MAXPLAYERS 4 /* total number of players a game can have */
#define STARCOST 251 /* company's price increase near star */
#define BLACKHOLECOST -250 /* price increase near black hole */
#define NEWCOCOST 101 /* company's price increase near new co */
#define STARCOST 500 /* company's price increase near star */
#define BLACKHOLECOST -500 /* price increase near black hole */
#define NEWCOCOST 100 /* company's price increase near new co */
#define Mx 12 /* x dimension of map */
#define My 10 /* y dimension of map */
#define Mx 12 /* x dimension of map */
#define My 10 /* y dimension of map */
/* macros to look at surrounding spaces on the map: */
@ -42,8 +42,6 @@
/* player and company structures: */
typedef struct {
@ -62,3 +60,4 @@ typedef struct {
int risk; /* value related to chance of being swallowed by Black Hole */
int netpot; /* potential - risk */
} COMPANY;
MPANY;

View File

@ -1,4 +1,4 @@
.TH STARLANES 6 "29 March 1996" "Starlanes V1.2.2"
.TH STARLANES 6 "12 February 2020" "Starlanes V1.4.2"
.SH NAME
starlanes \- the game of starlanes
.SH SYNOPSIS

View File

@ -1,5 +1,5 @@
/*
** starlanes v1.3.0 (29-Mar-1997) -- a space-age stock trading game
** starlanes v1.4.2 (12-Feb-2020) -- a space-age stock trading game
**
** Copyright (C) 1997 Brian "Beej" Hall
** with modifications by David Barnsdale 2004 and by ~jan6 2020
@ -101,7 +101,7 @@
/* #define NUMMOVES 5 number of different moves a player gets */
#define END_PERCENT 55 /* end when this much of the map is full */
#define END_PERCENT 54 /* end when this much of the map is full */
#define DEF_LINES 25 /* default number of lines on screen */
#define DEF_COLUMNS 80 /* default number of columns on screen */
@ -161,8 +161,8 @@ void usage(void);
char placemove(); */
/* global variables */
char *VERSION = "1.3.0";
char *VERSION_DATE = "1-June-2004";
char *VERSION = "1.4.2";
char *VERSION_DATE = "12-February-2020";
char *ident = "$Id: starlanes.c 1.2.2 29-Mar-1997 beej@ecst.csuchico.edu $";
@ -314,11 +314,11 @@ void initialize(void)
for(i=0;i<NUMCO;i++) {
switch(i) {
case 0: strcpy(co[i].name, "Altar & Stairway, Ltd.");break;
case 1: strcpy(co[i].name, "Beatles & Juice Co.");break;
case 2: strcpy(co[i].name, "Capella Fright, Ltd.");break;
case 3: strcpy(co[i].name, "Denebola Dice Shippers");break;
case 4: strcpy(co[i].name, "Eridani Expert Export");break;
case 0: strcpy(co[i].name, "Altair Starways");break;
case 1: strcpy(co[i].name, "Beetlejuice, Ltd.");break;
case 2: strcpy(co[i].name, "Capella Freight Co.");break;
case 3: strcpy(co[i].name, "Denebola Shippers");break;
case 4: strcpy(co[i].name, "Eridani Expediters");break;
}
co[i].size = co[i].price = 0;
}

View File

@ -391,6 +391,6 @@ BUGS
Starlanes V1.2.2 29 March 1996 6
Starlanes V1.4.2 12 February 2020 6