ANN: super star trek game
  Home FAQ Contact Sign in
comp.lang.forth only
 
Advanced search
POPULAR GROUPS

more...

comp.lang.forth Profile…
 Up
ANN: super star trek game         


Author: Krishna Myneni
Date: Oct 14, 2006 14:05

I've been working on an ANS Forth port of a classic, nearly 30 year-old game,
called "Super Star Trek". It was originally written in BASIC in the late 70's by
Mike Mayfield, and subsequently enhanced by others. This game has been ported to
many different languages, but I did not find a version in Forth. A "beta"
version of my port to ANS Forth may be found on the kForth Programming Examples
Page:

http://ccreweb.org/software/kforth/kforth4.html

See the file strek.4th.

Very simple modifications need to be made to the first two lines of code to run
on a vanilla ANS Forth system. For example, see the file strek.fs in

ftp://ccreweb.org/software/gforth/

I've already spent more time on this than anticipated. At this stage, the only
way to shake out bugs is for people to try it out!

Cheeers,
Krishna Myneni
21 Comments
ANN: super star trek game         


Author: Marcel Hendrix
Date: Oct 14, 2006 16:23

Krishna Myneni bellsouth.net> writes ANN: super star trek game
[..]
> Very simple modifications need to be made to the first two lines of code to run
> on a vanilla ANS Forth system. For example, see the file strek.fs in
> I've already spent more time on this than anticipated. At this stage, the only
> way to shake out bugs is for people to try it out!

| variable fdum

| : ran0 ( -- f | apply the logistic map with r=4 )
| fdum f@ fdup 1e fswap f- f* 4e f* fdup fdum f! ;

This won't work on normal Forths. Make that FVARIABLE fdum :-)

Global comment: A pity that you left the ALL UPPER CASE help
and abbreviated commands in. It may appeal to people who remember
this game from their youth, but IMHO it unnecessarily blemishes a
rather nice looking game for first timers.

Don't ask me how it plays, I have absolutely no patience for games :-)

-marcel
4 Comments
Re: ANN: super star trek game         


Author: Krishna Myneni
Date: Oct 14, 2006 16:32

Marcel Hendrix wrote:
>
> | variable fdum
>
> | : ran0 ( -- f | apply the logistic map with r=4 )
> | fdum f@ fdup 1e fswap f- f* 4e f* fdup fdum f! ;
>
> This won't work on normal Forths. Make that FVARIABLE fdum :-)

It *shouldn't* work on any Forth where 1 FLOAT is not equal to 1 CELL, which
includes kForth! I guess it takes a while to cause a problem... Thanks. That
certainly needs to be fixed!
>
> Global comment: A pity that you left the ALL UPPER CASE help
> and abbreviated commands in. It may appeal to people who remember
> this game from their youth, but IMHO it unnecessarily blemishes a
> rather nice looking game for first timers.
>

Actually, the help is not upper case; only the short list of command
descriptions. And, yes, I left it like that for historical reasons.
Show full article (0.89Kb)
2 Comments
Re: ANN: super star trek game         


Author: Marcel Hendrix
Date: Oct 14, 2006 17:03

Krishna Myneni bellsouth.net> writes Re: ANN: super star trek game
[..]
> It *shouldn't* work on any Forth where 1 FLOAT is not equal to 1 CELL, which
> includes kForth! I guess it takes a while to cause a problem... Thanks. That
> certainly needs to be fixed!

Meanwhile, I might have found another one:

command> com
Computer active and awaiting command (0 TO 5, OR -1) ?
Caught exception 0xc0000005

( I pressed "?" for help )

-marcel
1 Comment
Re: ANN: super star trek game         


Author: Krishna Myneni
Date: Oct 14, 2006 18:19

Marcel Hendrix wrote:
> Krishna Myneni bellsouth.net> writes Re: ANN: super star trek game
> [..]
>
>>It *shouldn't* work on any Forth where 1 FLOAT is not equal to 1 CELL, which
>>includes kForth! I guess it takes a while to cause a problem... Thanks. That
>>certainly needs to be fixed!
>
>
> Meanwhile, I might have found another one:
>
> command> com
> Computer active and awaiting command (0 TO 5, OR -1) ?
> Caught exception 0xc0000005
>
> ( I pressed "?" for help )
>
> -marcel
>
Show full article (0.80Kb)
no comments
Re: ANN: super star trek game         


Author: Krishna Myneni
Date: Oct 14, 2006 20:49

Marcel Hendrix wrote:
> Krishna Myneni bellsouth.net> writes ANN: super star trek game
> [..]
>
>>Very simple modifications need to be made to the first two lines of code to run
>>on a vanilla ANS Forth system. For example, see the file strek.fs in
>
>
>
>
>>I've already spent more time on this than anticipated. At this stage, the only
>>way to shake out bugs is for people to try it out!
>
>
> | variable fdum
>
> | : ran0 ( -- f | apply the logistic map with r=4 )
> | fdum f@ fdup 1e fswap f- f* 4e f* fdup fdum f! ;
> ...
Show full article (1.35Kb)
no comments
Re: ANN: super star trek game         


Author: Ian Osgood
Date: Oct 16, 2006 12:16

Krishna Myneni wrote:
> I've been working on an ANS Forth port of a classic, nearly 30 year-old game,
> called "Super Star Trek". It was originally written in BASIC in the late 70's by
> Mike Mayfield, and subsequently enhanced by others. This game has been ported to
> many different languages, but I did not find a version in Forth. A "beta"
> version of my port to ANS Forth may be found on the kForth Programming Examples
> Page:
>
> http://ccreweb.org/software/kforth/kforth4.html
>
> See the file strek.4th.
>
> Very simple modifications need to be made to the first two lines of code to run
> on a vanilla ANS Forth system. For example, see the file strek.fs in
>
> ftp://ccreweb.org/software/gforth/
>
> I've already spent more time on this than anticipated. At this stage, the only
> way to shake out bugs is for people to try it out!
> ...
Show full article (1.42Kb)
3 Comments
Re: ANN: super star trek game         


Author: Krishna Myneni
Date: Oct 16, 2006 16:56

Ian Osgood wrote:
> I don't envy your task, reverse engineering line-numbered Basic. ...

Well, it's essentially done. The game plays fairly well. There may be a few
rough spots in the code, where the output needs tweaking. Otherwise, the task is
just about finished.

I'm glad the program brought back memories. I was never much into computer
games, but I remember having played this one a few times in my younger days.

Krishna
2 Comments
kforth for Windows         


Author: Ed
Date: Oct 16, 2006 22:35

"Krishna Myneni" bellsouth.net> wrote in message news:IicYg.28023$zF5.10241@bignews1.bellsouth.net...
>
> ...
I've been working on an ANS Forth port of a classic, nearly 30 year-old game,
> called "Super Star Trek". It was originally written in BASIC in the late 70's by
> Mike Mayfield, and subsequently enhanced by others. This game has been ported to
> many different languages, but I did not find a version in Forth. A "beta"
> version of my port to ANS Forth may be found on the kForth Programming Examples
> Page:
>
> http://ccreweb.org/software/kforth/kforth4.html

I notice that the kforth Win distribution contains no executables
and the user is required to recompile from source.

IMO, that's a big ask. Win users are unlikely to know anything
about Cygwin, or gcc, or Linux, or the specific tools and libraries
needed to do the job. When even the first step fails (running
the downloader from www.cygwin.com and crashing) then it's
clearly time to give up :)
2 Comments
Re: kforth for Windows         


Author: Tester
Date: Oct 17, 2006 01:10

On Tue, 17 Oct 2006 15:35:24 +1000, "Ed" invalid.com> wrote:
>
>I notice that the kforth Win distribution contains no executables
>and the user is required to recompile from source.
>
>IMO, that's a big ask. Win users are unlikely to know anything
>about Cygwin, or gcc, or Linux, or the specific tools and libraries
>needed to do the job. When even the first step fails (running
>the downloader from www.cygwin.com and crashing) then it's
>clearly time to give up :)
>
Of course, compiling packages is typical in *nix and certainly anyone
involved in something as geeky as progranning in Forth would be
expected to know how to do it. This isn't true in Windows.

If you DID distribute a binary version of kforth you'd have to
distribute at least somr of the Cygwin DLL's which it uses.

IIRC when I DL'ed kforth I had CYGWIN installed but I needed one more
Cygwin package to get it to compile, readline.
Show full article (0.99Kb)
1 Comment
1 2 3