CPCWiki forum

General Category => Programming => Topic started by: scruss on 17:01, 08 November 19

Title: TAXMAN: a more-difficult-than-it-looks BASIC game from 1973
Post by: scruss on 17:01, 08 November 19
Way back when, the People's Computer Company (https://en.wikipedia.org/wiki/People%27s_Computer_Company) out of California published a whole load of terminal-based BASIC games in their eponymous People's Computer Company (https://www.computerhistory.org/collections/catalog/102661095) magazine. Most of them are too simple to be of interest, but TAXMAN (https://archive.computerhistory.org/resources/access/text/2017/09/102661095/102661095-05-v2-n1-acc.pdf#page=6) — a factor choosing game — provides a bit of a challenge.
I did a minimal port to Locomotive BASIC (formatting the text for 40 columns, putting pauses in the instructions since we're not running on paper teletypes, and moving one DIM command that would choke more modern interpreters) and uploaded it here: taxman.dsk (http://scruss.com/wordpress/wp-content/uploads/2019/11/taxman_AmstradCPC.zip). I hope you like it.

I wrote a bit more about it and included ports to other 8-bit machines (including BBC Micro, Apple II, C64, Spectrum and the ZX81) here: Taxman – a BASIC game from 1973 (https://scruss.com/blog/2019/11/03/taxman-a-basic-game-from-1973/)
I'd just like to say that the ZX81 was not a particularly amusing port.
A transcript of a short game follows:
Hi, I'm the taxman
Do you want the regulations?
(1=Yes, 0=No)? 0

How many numbers do you want in the list? 6
The list is: 1  2  3  4  5  6

You take? 5
Your total is  5
I get  1
My total is  1

New list:  2  3  4  6
You take? 6

Your total is  11
I get  2  3
My total is  6

New list:  4
I get  4
because no factors of any number are left.


My total is  10

You  11  Taxman  10

You win !!!

Again (1=yes, 0=no)?
Title: Re: TAXMAN: a more-difficult-than-it-looks BASIC game from 1973
Post by: AMSDOS on 08:44, 12 November 19
Taxman reminds me of another game called NIM, which was also another early BASIC game I think.


Having a look through the People's Computer Company Magazine revealed some other BASIC material on Joel & Andy's Page 16, I did a little altering to the "Andy Fire Prints Out An Image", which might come in useful for later games even if they seem useless.
I'm always interested in Bits & Pieces for getting ideas from, it's just a pity I couldn't read the other bit of code to produce a flower pattern from properly, it appears to be an printing issue stemming back from that magazine.
Title: Re: TAXMAN: a more-difficult-than-it-looks BASIC game from 1973
Post by: scruss on 00:37, 28 February 23
Quote from: AMSDOS on 08:44, 12 November 19Taxman reminds me of another game called NIM, which was also another early BASIC game I think.
Nim is a classic misère; that is, a game that you've lost if you make the wrong first move. Taxman is mean, but I don't think it's strictly a one-shot at not losing
Title: Re: TAXMAN: a more-difficult-than-it-looks BASIC game from 1973
Post by: Anthony Flack on 02:34, 28 February 23
John Conway did extensive investigations of mathematical games like Nim, subsequent to his development of the surreal numbers. He and his collaborators produced an entire book about them:

https://en.wikipedia.org/wiki/Winning_Ways_for_Your_Mathematical_Plays
Powered by SMFPacks Menu Editor Mod