Skip to content

Instantly share code, notes, and snippets.

View HoeenCoder's full-sized avatar

HoeenHero HoeenCoder

  • United States of America
View GitHub Profile
@HoeenCoder
HoeenCoder / app.js
Created September 17, 2016 17:03
Modified app.js 1 (Testing more than 1 tent)
'use strict';
var express = require('express');
var SAT = require('sat');
var app = express();
var http = require('http').Server(app);
var io = require('socket.io')(http);
var c = require('./config.json');
c.numTents = 2; //for testing this would normally be in config.json
@HoeenCoder
HoeenCoder / hockey.js
Created April 14, 2017 15:13
Bot Hockey by HoeenHero
'use strict';
/*
Hockey Game for PS Node Bot
Coded by HoeenHero
*/
let names = ['Hurricanes', 'Blue Jackets', 'Devils', 'Islanders', 'Rangers', 'Flyers', 'Penguins', 'Capitals', 'Bruins', 'Sabers', 'Red Wings', 'Panthers', 'Canadians', 'Senators', 'Lightning', 'Maple Leafs', 'Blackhawks', 'Avalanche', 'Stars', 'Wild', 'Predators', 'Blues', 'Jets', 'Ducks', 'Coyotes', 'Flames', 'Oilers', 'Kings', 'Sharks', 'Canucks', 'Golden Knights'];
/**
Star System Generator
WIP, shows the general idea will fill in blanks as needed.
*/
function generateSystem() {
var system = {};
system.name = ''; // TODO generate a system name
system.planets = {};
@HoeenCoder
HoeenCoder / day2.js
Created August 7, 2019 21:49
Pokemon Showdown & JavaScript Class Post-Stream Assignments
/*
* Pokemon Showdown & JavaScript Class
* Day 2 - Basic Data Types
* Post-Stream Assignments
*
* This assignment sheet will give you a chance to work further with booleans,
* strings, numbers, variables, and some of the things you can do with them.
* If you want me to review what you have done for errors, fill this info out
* before sending me a copy (you can make gists too if you have a github account).
*
@HoeenCoder
HoeenCoder / ludicolo.js
Last active August 9, 2019 11:50
Pokemon Showdown & JavaScript Class Post-Stream Assignment - Day 3
/*
* The Ludicolo Test
* This is a modified version of another popular test that checks if you can
* "code your way out of a wet paper bag". Basically its really simple and
* I'm assigning it to see if you understood this part's concepts.
*
* Instructions:
* Write a script that counts up from 1 to 100, including both 1 and 100 one number at a time.
* As you count up, log the current number to the console. However, if the current number
* is divisible by 4, print "Ludi" to the console, if the current number is divisible
@HoeenCoder
HoeenCoder / focusMiss.js
Last active August 9, 2019 12:00
Pokemon Showdown & JavaScript Class Post-Stream Assignment - Day 3
/*
* The FocusMiss Script
* If you have ever played competetive pokemon and used a low accuracy move such as
* Focus Blast or Stone Edge, it always seems to miss at the worst times possible,
* or even worse just never hit. This script plays off of that concept.
* I want you to build on this template that I have written and calculate how many times
* Focus Blast (or another Pokemon move with 70 accuracy or less) hits in a row.
* To make this assignment work, you would need to use some JavaScript code that
* you have not learned yet, as a result I have written a small function for you
* that handles the parts that you have not learned yet. Please see the comment
@HoeenCoder
HoeenCoder / github.txt
Created August 10, 2019 21:21
Pokemon Showdown & JavaScript Class Post-Stream Assignment - Day 4
This assignment is simple. I want you to take all the assingments you have previously done, and use git to place them in
a repository you create on github. Link me the github repo once your done.
@HoeenCoder
HoeenCoder / pokemart.js
Last active August 14, 2019 02:36
Pokemon Showdown & JavaScript Class Post-Stream Assignment - Day 6
/*
* The Pokemart
*
* This assignment has you working with Objects and Functions/Methods.
* The goal is to create code to represent a pokemart that sells items, and then
* simulate a player purchasing some items from the pokemart.
*
* Requirements [READ CAREFULLY]:
* The pokemart must be an Object containing at least 10 items. You can pick what
* items are sold and at what price.
@HoeenCoder
HoeenCoder / route.js
Created August 18, 2019 03:50
Pokemon Showdown & JavaScript Class Post-Stream Assignment - Day 7
/*
* Pokemon Route Simulation
*
* The goal of this assignment is to simulate a player walking through tall grass/a cave/surfing on water
* in a location in a pokemon game. This assignment is focused on Objects, Methods (Functions stored in an Object), and Arrays.
*
* Requirements [READ CAREFULLY]:
* You must have an object to contain information about the route/location that contains the following:
* - A name property that holds the location's name.
* - A property called grass OR cave OR water that contains an object.
@HoeenCoder
HoeenCoder / safari-zone.js
Created January 6, 2020 18:33
PSJS Class Day 11 Assignment
/*
* Safari Zone
*
* The goal of this assignment is to simulate encoutering and catching pokemon in a safari-zone like enviroment.
* Unlike the safari zones of gen 3-4, the player will not have bait/rocks/mud to throw, the player will simply
* throw a pokeball. When checking if the pokemon is caught, your script should be using the same forumula's found
* in the game's themselves. I have linked resources to those in the instructions below.
*
* This assignment focuses on classes and sub classes.
*