# Andrew's Homepage - Projects
The Homepage of Andrew Lalis.

## Ace of Shades

A top-down 2D shooter game inspired by Ace of Spades, and was made as a submission the 2021 Java Discord server's Java Jam. Includes a dedicated server, client, and server registry application.

## Ace of Shades 2

A 3D first-person shooter designed as the successor to Ace of Shades. This was again made as a 2022 Java Discord Java Jam submission, but I continued to develop it well beyond that.

## Handy-Httpd

An extremely lightweight and flexible HTTP server implemented in the D programming language. Below is an example of a "Hello world" server that just says "Hello" in response to any request.

                    import handy_httpd;

                    void main() {
                        HttpServer server = new HttpServer((ref ctx) {
                            ctx.response.writeBodyString("Hello");
                        });
                        server.start();
                    }

## Movescript & Itemscript

Simple grammars for concisely defining robotic movement and inventory management for ComputerCraft robots in Minecraft.

Instead of doing this:

                    turtle.forward()
                    turtle.forward()
                    local success = turtle.up()
                    while not success do
                        success = turtle.up()
                    end
                    turtle.dig()

You can use Movescript to safely move using a simpler syntax:

                    local ms = require("movescript")
                    ms.run("2FUDg")

## Rail Signal

API and web app for designing and managing rail systems, with real-time data updates via websockets. Originally designed for use with Minecraft and the Immersive Railroading mod, but practically can be used anywhere, as long as you've got the right device driver.

## SLF4D

A common logging interface for D projects, inspired by Java's SLF4J interfaces, but in an idiomatic D way. Any library can make use of SLF4D, while still letting the application developer decide how log messages are handled.

Here's an example of how it's used:

                    import slf4d;

                    void myFunction(int n) {
                        infoF!"Called myFunction with n = %d"(n);
                        for (int i = 0; i < n; i++) {
                            try {
                                doSomethingRisky(i);
                            } catch (Exception e) {
                                warn("Failed to do something risky.", e);
                            }
                        }
                    }

## Streams

A library that defines compile-time primitives and helper functions for working with streams of elements. A stream is anything which provides a `readFromStream` or `writeToStream` method. Also includes many stream implementations for things like files, sockets, chunked encoding, buffering, and more.

## Record-Net

A Java library for defining common protocol of binary messages to transmit over the network, similar to Protocol Buffers, but for pure Java applications, so it can take advantage of records and avoid code-generation.

## Coyote Credit

A web application for students to learn the basics of real-world stock trading through a simplified user interface and simulated accounts.