LOS Minesweeper: A Minesweeper App for the Lisa Office System

hggh1 pts0 comments

GitHub - alexthecat123/los_minesweeper: A Minesweeper app for the Lisa Office System! · GitHub

/" data-turbo-transient="true" />

Skip to content

Search or jump to...

Search code, repositories, users, issues, pull requests...

-->

Search

Clear

Search syntax tips

Provide feedback

--><br>We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Cancel

Submit feedback

Saved searches

Use saved searches to filter your results more quickly

-->

Name

Query

To see all available qualifiers, see our documentation.

Cancel

Create saved search

Sign in

/;ref_cta:Sign up;ref_loc:header logged out"}"<br>Sign up

Appearance settings

Resetting focus

You signed in with another tab or window. Reload to refresh your session.<br>You signed out in another tab or window. Reload to refresh your session.<br>You switched accounts on another tab or window. Reload to refresh your session.

Dismiss alert

{{ message }}

alexthecat123

los_minesweeper

Public

Notifications<br>You must be signed in to change notification settings

Fork

Star

main

BranchesTags

Go to file

CodeOpen more actions menu

Folders and files<br>NameNameLast commit message<br>Last commit date<br>Latest commit

History<br>19 Commits<br>19 Commits

src

src

tools

tools

LOS_Compilation_Base.image.zip

LOS_Compilation_Base.image.zip

README.md

README.md

los_minesweeper.dc42

los_minesweeper.dc42

los_minesweeper.scp

los_minesweeper.scp

View all files

Repository files navigation

LOS Minesweeper

Minesweeper for the Lisa Office System, written with help from Claude!

Introduction

I decided that I wanted to learn how to develop new LOS apps from the ground up (no ToolKit to help out), and I figured that there's no better way to do this than to ask an LLM to write a new app from the ground up, while heavily commenting and explaining things along the way. Then I can use the sample app as a teaching aid to learn just about everything that I need to know about LOS app development. And LOS Minesweeper is (one of) the results of these efforts!

Installing on Your Lisa

If you don't want to build the app yourself and just want to play it on your Lisa, just download the los_minesweeper.dc42 image from the root of this repo, and copy it to your Floppy Emu or write it to a real floppy disk. There's also los_minesweeper.scp for easy writing to a real disk from a GreazeWeazle or similar device. Once you've got your real or emulated disk ready, insert it into your Lisa and install Minesweeper as you would any other app; duplicate the tool and drag it onto your hard disk!

Note that Minesweeper is a document-less tool, so there's no stationery for it; just double-click the app directly to open it up.

Playing the Game

There's not a whole lot to say here; it's just Minesweeper. I'll go over a couple of Lisa-specific quirks/features and leave it at that.

The Lisa doesn't have right-click, which is what most Minesweeper versions use for flagging squares, so you instead hold the Apple key while clicking on squares in order to flag them. As with real Minesweeper, the first time you "flag click" on a square, it'll put a flag icon on it, the second time it'll put a question mark icon on it, and the third time it'll revert it back to an unflagged square.

There's also a dedicated Flag Mode (Apple-F or choose Flag Mode under the Game menu) that toggles flagging on permanently until you turn it back off again; no need to hold Apple.

The Copy option under the Edit menu will copy a full image of your gameboard to the Scrap (Clipboard) that you can then paste into other LOS apps like LisaWrite or LisaDraw. Pretty cool, right?

The Print option under the File/Print menu works too; it sends an image of your gameboard straight to your printer!

Building From Source

If you're interested in building the app from source, then you'll need to copy all of the files in the src directory over to your Lisa. The easiest way to do this is by downloading the LOS_Compilation_Base.image.zip hard disk image, extracting it to your hard disk emulator's SD card, and booting into the Workshop from that image. Connect a serial cable between your Lisa's Serial B and your modern computer, clone this repo, and then run the command python3 tools/lisa_serial_transfer.py src/, replacing with whatever port your serial cable is connected to on your modern machine. It'll then ask you to run a script on the Lisa.

So now move over to the Lisa Workshop and hit R for Run. Now type and hit enter. Wait for the screen to clear and then hit enter on the modern machine. Give it 5-10 minutes for all of the files to transfer over, and then you'll be given control over your Lisa again!

Now for the actual build process. This is easy; just hit R for Run again, type , and hit enter. Give it time to build and install the app, and then reboot into the graphical Office System, where you should find a nice playable copy of Minesweeper!

Source Code Structure

The code is...

lisa minesweeper los_minesweeper image from disk

Related Articles