Buy My Book!
Games
Games (2)
Github
Other Posts
Recent Posts: This Could Be Better
Sending Email from a Contact Page in PHP
Creating an HTTPS Service in .NET with HttpListener
Creating and Consuming Messages with Apache Kafka
Creating, Building, and Running a Simple Program in Rust
Creating, Building, and Running a Simple Program in the Go Language
Creating a Hello World Program in .NET Core with Visual Studio Code
Creating a Template-Driven Component in Angular
Installing and Running Angular on Windows 10
Creating an ASP.NET MVC Application in Visual Studio
Running Linux in a Virtual Machine using QEMU on Windows
Archives
- November 2023 (1)
- October 2023 (1)
- June 2023 (1)
- May 2023 (1)
- March 2023 (1)
- February 2023 (4)
- November 2021 (1)
- October 2021 (2)
- September 2020 (1)
- June 2020 (1)
- November 2019 (1)
- July 2019 (1)
- April 2019 (1)
- March 2019 (1)
- February 2019 (1)
- December 2018 (1)
- October 2018 (2)
- September 2018 (2)
- August 2018 (1)
- March 2018 (1)
- February 2018 (3)
- January 2018 (4)
- December 2017 (2)
- November 2017 (3)
- October 2017 (3)
- September 2017 (2)
- August 2017 (3)
- July 2017 (6)
- June 2017 (5)
- May 2017 (1)
- March 2017 (3)
- February 2017 (7)
- January 2017 (3)
- December 2016 (2)
- November 2016 (1)
- October 2016 (6)
- August 2016 (6)
- July 2016 (1)
- May 2016 (11)
- April 2016 (1)
- March 2016 (2)
- February 2016 (3)
- November 2015 (5)
- October 2015 (3)
- September 2015 (6)
- August 2015 (4)
- June 2015 (2)
- April 2015 (5)
- March 2015 (7)
- February 2015 (3)
- January 2015 (3)
- November 2014 (1)
- October 2014 (4)
- September 2014 (2)
- August 2014 (2)
- July 2014 (2)
- June 2014 (7)
- April 2014 (9)
- February 2014 (5)
- December 2013 (3)
- November 2013 (2)
- October 2013 (5)
- September 2013 (2)
- August 2013 (9)
- July 2013 (3)
- June 2013 (5)
- May 2013 (2)
- April 2013 (11)
- March 2013 (7)
- February 2013 (8)
- January 2013 (15)
- December 2012 (7)
- May 2012 (5)
- March 2012 (1)
- February 2012 (2)
- January 2012 (1)
- September 2011 (2)
- August 2011 (5)
- July 2011 (1)
- June 2011 (4)
- March 2011 (14)
Meta
Tag Archives: simulation
An Orbital Maneuver Simulator in JavaScript
Below is a prototype of a simple orbital maneuver simulator in JavaScript. To see the code in action, copy it into an .html file and open that file in a web browser that runs JavaScript. Or, for an online version, … Continue reading
Posted in Uncategorized
Tagged astrodynamics, JavaScript, orbital mechanics, physics, programming, simulation
Leave a comment
A Simulation of Pest Eradication in JavaScript
The JavaScript code below, when run, simulates a ecological pest-eradication scenario. An exterminator chooses a target at random, travels over a network of links and nodes to get as close as possible to the target, moves off the network towards … Continue reading
Posted in Uncategorized
Tagged ecology, JavaScript, networks, programming, routing, simulation
Leave a comment
Simulating Hardware in VHDL Using GHDL
Follow the steps below to create a simple “Hello, World” program in VHDL using GHDL. VHDL, or “VHSIC Hardware Description Language”, is a programming language used to simulate the operation of computer hardware in software. It provides a standardized method … Continue reading
A Network Routing Simulation in JavaScript with the Bellman-Ford Algorithm
The JavaScript code below, when run, simulates routing of packets within a simple computer network using the Bellman-Ford routing algorithm. To see it in action, copy it into an .html file and open that file in a web browser that … Continue reading
Posted in Uncategorized
Tagged Bellman-Ford, JavaScript, networking, programming, routing, simulation
1 Comment
A Quadtree-Based Collision System in JavaScript
The JavaScript code below, when run, will create a playfield full of small circular bodies, each moving in a random direction. When two circles collide, they will bounce off of each other and move in different directions. To see the … Continue reading
Posted in Uncategorized
Tagged collision detections, collision response, games, JavaScript, physics, programming, simulation
Leave a comment
Simulating a Spiral Galaxy Using JavaScript
The code below generates a random simulated galaxy of stars, and displays both a top view and a side view of that galaxy. The structure could probably use some tweaking, which is especially apparent from the side view. But it’s … Continue reading
A Simple Top-Down Space Game in JavaScript
The code given below implements a simple top-down space game in JavaScript. The code is adapted from that given for an even simpler game described in an earlier post. Use the W key to accelerate and the A and D … Continue reading
A Simple Turn-Based Game Loop in JavaScript
The JavaScript code below implements a turn-based version of a simple game from a previous post. The goal is to navigate through the “maze”, go through the door, grab the elixir, and return it to the gravestone back at the … Continue reading
Simulating an Ant Farm in JavaScript
This code isn’t quite done yet, but it does run, and I figured I’d better put it out there on the Internet before it got lost forever the next time something horrible happens to my hard disk. To use the … Continue reading
Posted in Uncategorized
Tagged artificial intelligence, JavaScript, programming, simulation
Leave a comment
Simulating a Simple World in JavaScript
The code listing included below uses concepts from previous posts on this blog (namely, the ones where a primitive orrery and an a-star pathfinding algorithm were implemented) to create a small microcosm in which several agents move from station to … Continue reading
Posted in Uncategorized
Tagged a-star, JavaScript, pathfinding, programming, simulation
Leave a comment