Quantcast
Channel: Indigo Rose Software Forums - Forums
Viewing all articles
Browse latest Browse all 2105

AMS AOC - Advent Of Code 2023 in LUA

$
0
0
Dear Fellow AMS-coders

If you are a little like me, you have been following Advent Of Code for a couple of years
now and have been wanting to join in for just as long...
This wish, this year, I have persued and the attached file(s) are the fruits of my labour
thus far. PLEASE NOTE that this is a work in progress and nothing too serious, I am only
sharing because I thought it'd be a nice thing to do (and good for the community), as it
might help you gain insights in the power of Lua and AMS
Click image for larger version

Name:	image.png
Views:	13
Size:	91.4 KB
ID:	310962
This little project contains
  • the Advent Of Code application, which you can use to test and run AOC-challenges
  • the source of this project
  • an AMS-debug-tools plugin, which adds the var_dump-action (adt.var_dump of var_dump directly) to AMS.
    This allows you to do some recursive table inspection(s), a little like PHP's var_dump() function
  • Lua-scripts for AOC 2023 day 1-10, for days 5 and 10, I haven't gotten around fixing the second challenge.
  • A lua "script template" with all the boiler plate code for a new Advent-Day.
  • Example and puzzle data for day 1-10
  • A couple of skins; I wanted the project to have a dark, hackish interface, so I used CodeJack's skins.

You can use the project in the following way:
  • puzzle- and example data can be stored in the /Autoplay/Docs folder
  • scripts should be stored in the folder /Autoplay/Scripts folder
  • scripts are loaded automatically, using a timer
  • select (click on) a script in the list box to the left
  • then, the functions assigned to table "scripts" are loaded in the second list box.
  • the actions are triggered by selecting them in the second list box.
  • by reading the existing scripts, you can find out what action is are needed to output the solution to the solution text-box

Toa all: if tyou have a licensed copy of AMS, feel free to alter or reuse anything in the package as you see fit. If you don't posess a license and are using a *****ed version, please leave this project and please consider obtaining one, so Indigo Rose can reignite development and implement new versions of Lua add features to the Edge-plugin ;-) (send message/on message would be of huge value to me. 0:-) )

To Indigo Rose: Feel free to include this project in promotional material, alter it to suit your needs or make it suitable distribution with your software.​

Viewing all articles
Browse latest Browse all 2105

Trending Articles