Page 1 of 2

werewolf for the zx81 16k

Posted: Wed Mar 06, 2024 8:55 pm
by Crayon21
There are two games: An easy one then a harder one with random positions
there is no score, just a goal to kill the teens and win. I have not been able to win the second, can you?

Re: werewolf for the zx81 16k

Posted: Wed Mar 06, 2024 11:01 pm
by Moggy
Werewolf for the 16k ZX81?

No it's white lightning for the 48k Spectrum. ;)

Re: werewolf for the zx81 16k

Posted: Sun Mar 10, 2024 5:18 am
by Crayon21
I never understood the concept behind Forth and never will. It makes my head hurt just trying to program it. It doesn't even have a print function for text

Re: werewolf for the zx81 16k

Posted: Sun Mar 10, 2024 10:35 am
by Moggy
Yes it does.

Example.

." some text "

This is the standard way to print text in Forth.

Re: werewolf for the zx81 16k

Posted: Mon Mar 11, 2024 8:50 am
by siggi
Moggy wrote: Sun Mar 10, 2024 10:35 am Yes it does.

Example.

." some text "

This is the standard way to print text in Forth.
I would have expected that:

. "txet emos "

:mrgreen:

Re: werewolf for the zx81 16k

Posted: Mon Mar 11, 2024 12:39 pm
by kmurta
Crayon21 wrote: Sun Mar 10, 2024 5:18 am I never understood the concept behind Forth and never will.
This short tutorial is a good introduction to Forth: https://skilldrick.github.io/easyforth/

Re: werewolf for the zx81 16k

Posted: Mon Mar 11, 2024 1:52 pm
by redgatemodels
siggi wrote: Mon Mar 11, 2024 8:50 am
Moggy wrote: Sun Mar 10, 2024 10:35 am Yes it does.

Example.

." some text "

This is the standard way to print text in Forth.
I would have expected that:

. "txet emos "

:mrgreen:
Brilliant :lol: :lol: :lol: :lol: :lol:

Re: werewolf for the zx81 16k

Posted: Mon Mar 11, 2024 2:57 pm
by Moggy
Excellent Siggi! Except you left a space between . "
:lol: :lol: :lol: :lol: :lol:

Re: werewolf for the zx81 16k

Posted: Fri Mar 15, 2024 1:20 am
by Crayon21
Well, the thing is I try that on the Jupiter ace and it won't work.

Re: werewolf for the zx81 16k

Posted: Sat Mar 16, 2024 1:13 am
by kmurta
Crayon21 wrote: Fri Mar 15, 2024 1:20 am Well, the thing is I try that on the Jupiter ace and it won't work.
I imagine you tried it in interpreted mode and got ERROR 4, right?

In Jupiter ACE the word ." can only be used within a definition, try this one:

: hello cr ." Hello World!" ;

Then type hello

;)