scene.org File Archive

File download

<root>­/­parties­/­2023­/­vccc23­/­christmas-diamonds/keyj_pc_basic_vc3-2023.zip

File size:
19 805 bytes (19.34K)
File date:
2024-01-03 14:15:18
Download count:
all-time: 8

Preview

  • file_id.diz 1.12K
  • vc3kj_a.bas 79B
  • vc3kj_gw.bas 71B
  • vc3kj_result.png 9.30K
  • vc3kj_source.png 10.48K

file_id.diz

KeyJ's Gee-Whiz Weave Pattern

Author:          KeyJ / TRBL
Category:        Christmas Challenge 2023
System:          IBM PC or compatible
Language:        GW-BASIC
Len source code: 79 bytes (ASCII source code)
Len exe file:    n/a
Len code only:   71 bytes (GW-BASIC tokenized format)

Instructions:
- get GWBASIC.EXE if you haven't got it (Google is your friend!)
- get a DOS emulator (DOSBox, PCem, whatever)
- run GW-BASIC and LOAD"VC3KJ_GW.BAS", or run it via the command line:
  > gwbasic vc3kj_gw
- the ASCII version should also run in QBasic
- alternatively, use PC-BASIC:
  https://robhagemans.github.io/pcbasic/download.html
  - on a system with Python 3 and PIP installed:
    $ pip3 install pcbasic
    $ python3 -m pcbasic vc3kj_gw
  - on Ubuntu Linux systems:
    $ sudo apt install python3-pcbasic
    $ pcbasic vc3kj_gw.bas

Description:
Uses a simple parametric formula: X and Y in, character out.

Comments:
Same approach as with my Python implementation, except it uses a different
range for x so the results never become negative.

Note that the screenshots have been generated with "KEY OFF:SCREEN 1" for nicer
presentation.