Hello! I studied Computer Science, and live in Bath. I write code, design games, and occasionally tweet.
Hello! I studied Computer Science, and live in Bath. I write code, design games, and occasionally tweet.

Posts about Simulations Other Categories

NES Emulator Jun. 14, 2016 in Games, Java, Simulations

Screenshot

My (mostly failed) attempt at creating a NES Emulator from scratch.

I Really Like Fractals Mar. 13, 2015 in Fractals, Java, Simulations, University

I

Mandelbrot Burning

really

Rabbit Lightning

like

Nova Buddhabrot

fractals.


Fractal Explorer

Click above to download via itch.io. Click here to download a 100MB render.

Creating Games using C++ and SFML Dec. 10, 2013 in 6thform, Cpp, Games, Simulations

This year I took part in the video game development club at sixth form. Here we were taught how to use C++ and SFML to make games from scratch. While not the greatest, I thought they were worth sharing anyway. Enjoy!

Asteroids

Asteriods

Shoot stuff, in space! Visit on GitHub

Side Scroller

Side Scroller

Shoot stuff, to the side! Visit on GitHub.

Game of Life

Game of Life

Conway’s classic game of life. Visit on GitHub.

The Little Man Computer Apr. 12, 2011 in Simulations, Text, Vb.net

The Little Man Computer (LMC) is an instructional model of a computer, created by Dr. Stuart Madnick in 1965. The LMC is generally used to teach students, because it models a simple von Neumann architecture computer - which has all of the basic features of a modern computer. It can be programmed in machine (albeit usually in decimal) or assembly code.

Screenshot of the Program

For reference, here is some example code that takes numbers as input, and squares the result. Credit Wikipedia.

START   LDA ZERO     // Initialize for multiple program run
        STA RESULT
        STA COUNT
        INP          // User provided input
        BRZ END      // Branch to program END if input = 0
        STA VALUE    // Store input as VALUE
LOOP    LDA RESULT   // Load the RESULT
        ADD VALUE    // Add VALUE, the user provided input, to RESULT
        STA RESULT   // Store the new RESULT
        LDA COUNT    // Load the COUNT
        ADD ONE      // Add ONE to the COUNT
        STA COUNT    // Store the new COUNT
        SUB VALUE    // Subtract the user provided input VALUE from COUNT
        BRZ ENDLOOP  // If zero (VALUE has been added to RESULT by VALUE times), branch to ENDLOOP
        BRA LOOP     // Branch to LOOP to continue adding VALUE to RESULT
ENDLOOP LDA RESULT   // Load RESULT
        OUT          // Output RESULT
        BRA START    // Branch to the START to initialize and get another input VALUE
END     HLT          // HALT - a zero was entered so done!
RESULT  DAT          // Computed result (defaults to 0)
COUNT   DAT          // Counter (defaults to 0)
ONE     DAT 1        // Constant, value of 1
VALUE   DAT          // User provided input, the value to be squared (defaults to 0)
ZERO    DAT          // Constant, value of 0 (defaults to 0)

In the absence of any Windows desktop emulator, I created my own in .NET and here it is. View and download on GitHub.