This, I think, and to my annoyance was the easiest so far. It took me a couple of goes to get it right and there was a lot of head scratching as I just couldn’t see why it was coming out with a figure which was way too low. Each time I had an ‘aha’… Read More »
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.
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 »