Skip to content

Instantly share code, notes, and snippets.

View josuegaleas's full-sized avatar

Josue Galeas josuegaleas

View GitHub Profile
@josuegaleas
josuegaleas / postFix.cpp
Last active November 27, 2018 21:10
My quick and rough implementation of the Shunting-yard algorithm.
/*
* Author: Josue Galeas
* Last Edit: 2018.10.21
*/
#include <iostream>
#include <vector>
#include <queue>
#include <stack>
using namespace std;
@josuegaleas
josuegaleas / reverseBits.cpp
Last active October 10, 2018 20:17
I got a fortune showing some code that reverses bits in a word, and I figured I would test it.
/*
* Author: Josue Galeas
* Last Edit: 2018.10.10
*/
#include <cstdlib>
#include <iostream>
#include <bitset>
using namespace std;
@josuegaleas
josuegaleas / CombatSim2015.c
Last active August 17, 2018 20:22
A silly combat game based off of a prompt given to a friend. Originally done in C, and then remade in C++.
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int playerHP = 1000;
int enemyHP = 1000;
int playerBase = 100;
int enemyBase = 125;
char c = '\0';
int playerMove = 0;
@josuegaleas
josuegaleas / TicTacToe.cpp
Last active August 14, 2018 06:35
A very old and bad implementation of Tic-Tac-Toe I wrote in C++.
/*
* Author: Josue Galeas
* Last Edit: May 25, 2016
* Description: Tic-Tac-Toe, implemented in basic C++
*/
#include <iostream>
#include <cstdlib>
#include <ctime>
using namespace std;