Scrabble and the LARKEN System

See all articles from Sinc-Link v6 n6
Author(s): George Chambers
Publication: Sinc-Link
Pub Details: Sinc-Link v6 n6 (Volume 6, Issue 6)
Date: November/December 1988
Pages: 9

SCRABBLE is a computer game that is patterned very closely after the familiar board game. Among the player options are the facility to SAVE and LOAD a game at any stage of it’s progress. Of course the SAVE/LOAD option is to tape. What we want to do here is change the option to save to disk.

The program has a short BASIC component which is used for the LOAD/SAVE procedure. It is this Basic section that we shall modify.

Load the program. Whether you are loading the game from disk or from tape, you should break into it after loading by pressing the Larken NMI button, followed by the A key. The program will not crash. Instead, you will be able to list it.

Modify the listing to correspond to the listing below. Take note of the following points:

1. The N$ has been DIMmed to n$(10) in the program. Change this by entering as a direct command… DIM n$(9). (don’t use the commands CLEAR or RUN)

2. I had to instal line 5 because I found the program would not operate on my choice of instruction, “LET N$ = N$ + “.Cs”. That is why the LOAD and SAVE commands use the term n$+d$ for the program name. I can’t explain it.

3. Do not elaborate on the BASIC program. The game code is very low in memory and there is a danger you may overwrite it.

Re-enter the game by GOTO 10, then immediately SAVE the modified program to disk by using the NMI function. Rename the program with a RENAME facility.

   4 INPUT "FILENAME : "; LINE n$: IF LEN n$>6 THEN  LET n$=n$( TO 6)
5 LET d$=".Cs": RETURN
10 GO TO USR VAL "46474"
50 BORDER VAL "5": CLS : PRINT AT VAL "6",PI*PI;"Loading": GO SUB PI: PRINT USR VAL "100": LOAD n$+d$CODE : GO TO USR VAL "46477"
90 GO TO USR VAL "46474"
100 BORDER VAL "5": CLS : PRINT AT VAL "6",PI*PI;"Saving game": GO SUB PI: PRINT USR VAL "100": SAVE n$+d$CODE VAL "60368",VAL "5167": GO TO USR VAL "46477"