This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'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']; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
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 = {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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). | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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. | |
* |
OlderNewer