Showing posts with label coding. Show all posts
Showing posts with label coding. Show all posts

March 1, 2017

Amoeba Colony

Had a lot of fun with this one. I actually spent most of my weekend trying to figure out how to implement a JComboBox, cause I thought it would be super rad if the user didn't have to type all the things and they could go back and manipulate the amoeba colony numbers but as I went into it I found I'd probably need to implement a while loop which we were instructed to not do right now. Also JComboBoxes are just hard.

I just settled with this rather basic program, tried to keep everything neat and organized cause it's just nice to look at easier to debug if there's something odd going on. That's pretty much it...insert into your favorite compiler and watch it go! Take the class that goes with it!

February 2, 2017

Lottery Game

Here's another program! This one generates random lottery and fantasy 5 numbers. Getting a hang of the whole "reference variable" and class stuff, I can see how totally useful it's going to be later on, but I guess I just need more practice making this stuff since the whole parameter, constructor thing has got me a bit a confused as to when and how I'd want to use. Made in netbeans!!:

January 6, 2017

FizzBuzz

Diverted from my 2D platformer a bit after I got the opportunity to submit for this Uber scholarship bootcamp with Ironhack in Miami.

After a series of interviews, they finally brought the top 10% of us into their campus to take a very basic technical test in ruby. They gave a refresher on ruby before the test and then told us to code a FizzBuzz game! FizzBuzz being that great childhood number game to help kids with their math skills.

If you don't know, the "teacher" will point at every kid in the room one at a time, (the rules vary depending on what you're learning) and assign some value to Fizz (like multiples of three) and another to Buzz (like multiples of five) and thus make FizzBuzz multiples of 15!

So, [1, 2, Fizz, 4, Buzz, Fizz, 7, ..., 14, FizzBuzz]

Below is the code for that! Run it in your favorite ruby compiler and watch it go!