A quick post on day 2 of 2023’s Advent of Code, being completed in XC=BASIC and run on the Commodore 64.
Day 1 looked deceptively simple, with part 1 completed in pretty quick time. The only real problem was the large amount of data caused memory overflow issues, so I split it into 4 separate parts for the data statements.
So, in this one we have to play Rock, Paper, Scissors with the elves. We’re given a secret guide with what each elf will play, either A(Rock), B(Paper) or C (Scissors) and the corresponding move we should play, X, Y or Z respectively. The task is to work out the total score at the end.
I have decided to do Advent of Code, 2023, and to get me started and by way of a bit of a ‘toe dipping’ exercise, I am going back to AoC 2022 and completing the first few days.
I’ve been writing a bit about the Amstrad NC100 over on mastodon lately, and talking about transferring files to and from macOS as well as experimenting with BBCBasic.
This post, which admittedly is a little niche and may only appeal to a a handful of people, is about that process from start to finish.
Following on from the intro and scene setting of my previous post, this is the first in a series of XC=BASIC v3.0 features on various snippets of code and features for my Adventure Game template. The idea is to create a framework for the working engine of a text based adventure game, including most of… Read More »