Skip to content

Instantly share code, notes, and snippets.

@Zinth
Zinth / CMD Calendar
Created July 9, 2017 20:17
CMD Calendar source code (JAVA)
/*Project CMD Calendar
* Version: 1.5
* Programmer: Chris Hyde (aka Zinth)
* Last Edited: 7/9/2017
*
* A // -- denotes a section
* A // is just a comment on what the following lines of code should do.
*
* Change Log
@Zinth
Zinth / gist:5397244
Created April 16, 2013 16:09
Get High Score Code for BugWars.
private void GetHighScore()
{
Boolean boolWorkingFileIO = true;
//See if you can write to file
try
{
theFileRead = new FileStream("BugWars HighScores.txt", FileMode.OpenOrCreate, FileAccess.Read);
theScoreRead = new StreamReader(theFileRead);
for (int i = 0; i < maxHighScores; i++)
{
@Zinth
Zinth / Gues the Number
Created December 15, 2011 01:48
Number Guessing Game!
#include <iostream>
#include <cstdlib>
#include <ctime>
using namespace std;
// nameing all global variables
int guess;
int number;
int wins = 0;
// start of the program
int main()
@Zinth
Zinth / Zombie Attack
Created December 13, 2011 21:46
Zombie Attack (simple text combat sim)
// Zombie Fighting test:
// Made by zinth:
// Date 12/13/2011:
#include <iostream>
#include <string>
#include <cstdlib>
using namespace std;
@Zinth
Zinth / Rock Paper Scissors
Created December 13, 2011 17:51
Rock Paper Scissors C++
#include <iostream>
#include <cmath>
#include <time.h>
#include <cstdlib>
using namespace std;
// starting main function
int main(){
// set the char variable for the y/n while loop. I have learned since that a bool statement
// might have been a little better for the loop
char ch;