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)


No comments:

Post a Comment

🖥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...