Giter Site home page Giter Site logo

testprojects's Introduction

TestProjects

This repo is an amalgamation of a couple side projects I did. Each one is described in a little detail below:

Pong with Windows

pong

As you can see in this ^ gif, I am playing pong using a random process's window as the paddle! Also, you might notice that the score, ball, and AI paddle all displayed seemingly magically floating over my desktop. I implemented this by using PInvoke to directly call the windows system API.

More specifically, the score, the ball, and the AI paddle are all separate processes. I use PInvoke to update the ball & paddle window's positions, and share information about the score. I find the topmost window on the screen, identify it's bounds and use that as the player paddle. The rest is just simple pong logic!

Arbitrary Graph-Based Data Structure Visualizer

treevis

I created a special visualizer which allows users to visualize arbitrary data structures which can take a graph-like form. The circles are nodes, the arrowed lines are edges, and the triangles + dashed lines are "pins" which help with visualization.

graphexample

In the visualizer, users can experiment with pre-provided data structures (BSTs, Linked List, and Doubly Circularly Linked List), or they can add their own using my VisLibrary.

To ease in visualization, "pins" can be placed pulling nodes to hold certain configurations:

PinExample

Maze Generation and Pathfinding

pathfinding

As shown above, I created a simple drawable grid which supports pathfinding using A* from start (green) to finish (red) ignoring walls (black).

Additionally, I implemented maze generation using Union Find and Primms:

mazegen

testprojects's People

Contributors

ryanalameddine avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.