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'; | |
let location = { | |
name: 'Route 10', | |
grass: { | |
area: 'grass area', | |
pokemon: { | |
herdier: { | |
name: 'Herdier', // will be used for formatting later | |
levels: [33, 35, 34], | |
typeOfEncounter: 'grass', |
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'; | |
let money = 50000; | |
function buyItems(a, b, c, d, e, f, g, h, i, j) { | |
let pokemart = { | |
pokeBall: { | |
name: 'Poke Ball', // name is used for logging it in a normal formatting | |
price: 100, | |
bought: a, | |
tax: 100 * a, | |
}, |
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
var pokemon = ["Marshadow", "Pikachu", "Lucario", "Flareon"]; | |
// Assignment #1: | |
for (let n of pokemon) { | |
console.log(`${n}`); | |
} | |
// Assignment #2: | |
for (let i = 0; i < pokemon.length; i++) { | |
if (pokemon[i] === 'Lucario') { |
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 assignment by Ryota Mitarai | |
* | |
* Discord Tag (Ryota Mitarai#7403) | |
* Pokemon Showdown Username: Ryota Mitarai | |
* Twitch Username: none | |
*/ | |
'use strict'; | |
function runMove(accuracy = 70) { |
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 Assignment by Ryota Mitarai | |
* | |
* Discord Tag (Ryota Mitarai#7403) | |
* Pokemon Showdown Username: Ryota Mitarai | |
* Twitch Username: none | |
*/ | |
'use strict'; | |
for (let i = 1; i <= 100; i++) { | |
if (i % 4 === 0 && i % 6 === 0) { |
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
/* | |
* ASSIGNMENT BY RYOTA MITARAI | |
* Pokemon Showdown & JavaScript Class | |
* Day 2 - Basic Data Types | |
* Post-Stream Assignments | |
* | |
* Discord Tag (Ryota Mitarai#7403). | |
* Pokemon Showdown Username (Ryota Mitarai). | |
* No Twitch username. | |
*/ |