Friday, September 13, 2024

🖥A "10PRINT" Variant, BAMified

This program by Charlie Veniot is a port and mod of Ian Witham's C64 program found in this YouTube video.

New colours are randomly project upon every program restart (either refresh the web page or click/touch the program's output window).

Monday, September 2, 2024

🖥 David Ahl's "One Check", BAMified

This program re-published with the development version of BASIC Anywhere Machine in order to test forthcoming changes to BAM.
48 CHECKERS ARE PLACED ON THE 2 OUTSIDE SPACES OF A
STANDARD 64-SQUARE CHECKERBOARD.  THE OBJECT IS TO
REMOVE AS MANY CHECKERS AS POSSIBLE BY DIAGONAL JUMPS
(AS IN STANDARD CHECKERS).
SELECT A CHECKER TO MOVE BY CLICKING/TOUCHING IT.
THEN SELECT THE DESTINATION TILE THE CHECKER WILL LAND ON
AFTER JUMPING OVER ANOTHER CHECKER.
WHEN YOU HAVE NO POSSIBLE JUMPS REMAINING,
CLICK/TOUCH 'DONE'

One of the top goals for BAM includes giving old-school BASIC classics a new lease on life: make them easy to run (in web browsers, offline as well as online) and easy to share (on the web, as an email attachment, on a USB thumbdrive, whatever).  (In the case of this program, keep the "smarts" of the original code, but enhance the program so that it can be used on touch devices via a retro-looking graphics interface.)

So no special requirements and no dependencies:
  • no software/apps other than a web browser
    • so device and operating system agnostic
  • a BASIC program and everything it needs to run in a web browser, they are all in one HTML file
One Check is a program by David Ahl from his book: "Basic Computer Games Microcomputer Edition" 
(which you can find here at the Internet Archive.) 

This BASIC Anywhere Machine port, significantly modded, is based on another version of David Ahl's program found here.

The mods include:
  • Code significanly reorganized to use GOSUB subroutines instead of GOTO
  • Modified to use mouse/touch to choose checker pieces and move destinations
  • Modified to use character-based graphics and colour
  • (NOTE: Any remaining line numbers are breadcrumps to the original source code)


Saturday, August 31, 2024

🖥 Lotus Graph

This program is a port and mod by Charlie Veniot of a QB64 program by Luis Alberto Migliorero (https://www.facebook.com/share/p/SopXe3tgxxsWgkHR/).

That QB64 program is a port of a C64 (CBM BASIC v2) program by Alvaro Alonso G. (https://www.facebook.com/share/p/KsTAzh7ee41PnVQN/).

Because I like to sit back and let myself be entranced by animation (putting the graphic program in an endless loop with changing colours), I've modded the program as per that little joy o' mine.

The program pauses for a second after drawing the center-most part of the lotus.  You can click/touch the screen at this time to pause the program until you release the click/touch.

The BAM program:








Sunday, August 4, 2024

🚧 Data Types Overhaul in The Works

Planned for the next version of BAM and currently in the development version of BAM:

BYTE and UBYTE

  • Changing the "BYTE" data type from unsigned byte values to signed byte values (range -128 to 127)
  • Adding the "UBYTE" data type for unsigned byte values (range 0 to 255)




INTEGER, SHORT and USHORT

  • Adding the "USHORT" data type for unsigned short integer values (range 0 to 65,535)
  • The "SHORT" data type (aka "INTEGER" for compatibility with GW-BASIC) for signed short integer values (range -32,768 to 32,767) already existed and remains unchanged



LONG and ULONG

  • Adding the "ULONG" data type for unsigned long integer values (range 0 to 4,294,967,295)
  • The "LONG" data type for signed long integer values (range -2,147,483,648 to 2,147,483,647) already existed and remains unchanged










🖥A "10PRINT" Variant, BAMified

This program by Charlie Veniot is a port and mod of Ian Witham's C64 program found in this YouTube video. New colours are randomly proje...