Search found 503 matches

by Henko
Sun Feb 17, 2019 8:04 am
Forum: BASIC programs
Topic: Old school Hamurabi
Replies: 4
Views: 88
Flag: Netherlands

Re: Old school Hamurabi

Hi George, I noticed your playable version of Hamurabi not earlier than today and gave it a try immediately. There may be some logic problems in the code, or i must be a stupid Hamurabi player. Anyhow, i cannot survive the first year. Here's what happened: After entering zeros for buying and selling...
by Henko
Sat Feb 16, 2019 12:54 pm
Forum: BASIC programs
Topic: Scrollable message logbook
Replies: 1
Views: 18
Flag: Netherlands

Scrollable message logbook

In (old time) text oriented games like Hamurabi and Eliza, textual (and embedded numeric) information is passed to the user at each iteration. It is handy to have a message window where new information is added to the bottom of the window, while pushing up the earlier messages. A sB LIST is used to ...
by Henko
Fri Feb 15, 2019 6:05 pm
Forum: BASIC programs
Topic: Dot Matrix Clock
Replies: 12
Views: 122
Flag: Netherlands

Re: Dot Matrix Clo

Looking at the generated "Z", i suggest to apply a rule like in the "game of life" of Conway. Right after scanning the solid character, each of the "1" values in the table should be checked if 3 of the 4 horizontal and vertical neighbours are "0". In that case, the "1" should also be set to zero. I...
by Henko
Fri Feb 15, 2019 6:03 pm
Forum: BASIC programs
Topic: Dot Matrix Clock
Replies: 12
Views: 122
Flag: Netherlands

Re: Dot Matrix Clo

Looking at the generated "Z", i suggest to apply a rule like in the "game of life" of Conway. Right after scanning the solid character, each of the "1" values in the table should be checked if 3 of the 4 horizontal and vertical neighbours are "0". In that case, the "1" should also be set to zero. I ...
by Henko
Fri Feb 15, 2019 2:48 pm
Forum: BASIC programs
Topic: Dot Matrix Clock
Replies: 12
Views: 122
Flag: Netherlands

Re: Dot Matrix Clock

76193A7F-6E85-432F-B351-77A5C34A4061.png r=100 ! c=int(.6*r) ! dim tab(r,c) char_raster("Courier","Q",r,c,tab) disp_char(r,c,tab) end ' produce raster of a character ' font$ = font type to use ' char$ = character to be rasterized ' rr = # of rows in the table ' rc = # of columns in the table (usual...
by Henko
Fri Feb 15, 2019 10:31 am
Forum: BASIC programs
Topic: Dot Matrix Clock
Replies: 12
Views: 122
Flag: Netherlands

Re: Dot Matrix Clock

Henk, I think you just described your next project! :lol: I wouldn't call it a "project" 😕. Here is the code snippet, a function, wich gives the raster table for a character from a given font with a prescribed grid size. Deviations occur when the raster is too coarse. r=30 ! c=18 ! dim tab(r,c) cha...
by Henko
Thu Feb 14, 2019 8:40 am
Forum: BASIC programs
Topic: Dot Matrix Clock
Replies: 12
Views: 122
Flag: Netherlands

Re: Dot Matrix Clock

Nice "billboard" Richard. Working with dot matrix characters is a great mental exercise. Especially when you start with photos of dot matrix patterns found on the web and have to translate them into data. How about the following little program: Pick a character from a selected font and put it with t...
by Henko
Mon Feb 11, 2019 11:09 am
Forum: BASIC programs
Topic: Old school Hamurabi
Replies: 4
Views: 88
Flag: Netherlands

Old school Hamurabi

Someone mentioned the early game of Hamurabi. It triggered me to produce the game as i remember it. It is an old fashioned text based replica. I replaced the standard keyboard by a little numerical keypad, and designed my own simulation mechanisms. Perhaps i will make a "modern" version with a graph...
by Henko
Fri Feb 01, 2019 8:46 pm
Forum: BASIC programs
Topic: Cellular automata
Replies: 0
Views: 42
Flag: Netherlands

Cellular automata

6 years ago i posted a program "automaton", based on an article in the late "Byte" magazine. I redesigned that program, especially the user interface. 4 files are needed, from which the names of the last three must be followed as given (unless the code is modified). All files must reside in the same...
by Henko
Fri Feb 01, 2019 9:06 am
Forum: Libraries
Topic: Sleep Function
Replies: 10
Views: 100
Flag: Netherlands

Re: Sleep Function

and I hope he publishes them here. This is the wait function that i added to my utility lib: ' interruptable wait function ' x,y - location of the wait button ' t - wait time in seconds (t=0 -> forever) ' background will be restored upon termination ' def wait(x,y,t) if t=0 then t=1E+6 ! to=time() ...