borntofrappe / code

Explore software
0 stars 0 forks source link

github.com/borntofrappe/code

With this repository I set out to explore a variety of topics through code. Code meaning HTML, CSS, JavaScript, but also Lua, C++, and all possible utilities designed around these languages.

10PRINT

Explore the 10 print algorithm to specifically simulate rain.

Keywords: JavaScript, canvas, input

Live demo(s): 10PRINT Rain Simulation

Binary Numbers

Create a binary counter and illustrate how bit shifting works.

Keywords: JavaScript, binary, decimal, bitwise operators

Live demo(s): Binary Counter, Bit Shifting

Additional notes: the bit shifting demo is recreated and enhanced with Svelte. The project is discussed in this repository and available in this REPL.

Tic Tac Toe

Program a game between two human players and a game against computer AI.

Keywords: JavaScript, minimax algorithm, Zdog

Live demo(s): Tic Tac Zdog, Tic Tac Minimax Toe

Maze Algorithms

Implement a series of algorithms to design twisty little passageways.

Keywords: Lua, Love2D, algorithms, maze

Live demo(s): Binary Tree, Sidewinder, Simplified Dijkstra, Adlous Broder, Wilson, Hunt and Kill, Recursive Backtracker

Maze Shapes

Keywords: Lua, Love2D, shape, maze

Implement the recursive backtracker algorithm with mazes of different shape.

Live demo(s): Grid Masking, Polar Grid, Polar Adaptive Grid, Hex Grid, Triangle Grid

2D Ray Casting

Project a series of lines against the surrounding environment.

Keywords: Lua, Love2D, JavaScript, Canvas API

Live demo(s): Lua and Love2D, JavaScript and Canvas

Fireworks

Simulate the motion of fireworks and particles.

Keywords: Lua, Love2D

Live demo(s): Lua and Love2D

Attraction and Repulsion

Have particles attracted to or repelled from a given object.

Keywords: Lua, Love2D, physics

Live demo(s): Gravitational Attraction, Playground

Jittering Particles

Move particles toward a resting position, and away from the course cursor

Keywords: Lua, Love2D, JavaScript, Canvas API, physics

Live demo(s): Lua and Love2D

Traveling Salesperson

Find the shortest path connecting a series of points.

Keywords: Lua, Love2D, algorithm, genetic algorithm

Live demo(s): Lexicographic Traveling Salesperson, Genetic Algorithm Traveling Salesperson