Experiments
Graphing Calculator
A simple graphing calculator which uses webgl to render a function in the form of f(x). In order to support calculus functionality such as x^2, I wrote https://github.com/jzohdi/glsl_math which transpiles to glsl language. For example: pow(x, 2.0)
Wasm Sudoku
I compile source code written in C to a wasm binary that is called via javascript. I detail how I used tools like emscripten sdk vs clang to create and connect to wasm runtime.
2048 AI
This artificial intelligence algorithm attempts to play the puzzle game 2048. Moves are retrieved through a breadth-first-search Expectiminimax tree with alpha-beta-pruning .
HTML Conways
Conway’s Game of Life using pure vanilla JS and html elements as game cells. Features include play, pause, and settings for density and number of columns.
WebGPU Conway’s
Conway’s game of life rendered using webgpu. Webgpu not widely supported by browsers: https://caniuse.com/webgpu