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
package hw2; | |
import static org.junit.Assert.*; | |
import org.junit.Before; | |
import org.junit.Test; | |
import java.io.File; | |
import java.io.FileNotFoundException; | |
import java.util.Random; |
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
package exam2review; | |
import java.util.ArrayList; | |
/* | |
* <<<<NOTE>>>>>>> | |
* Please work the review on your OWN first! It will help your understanding immensely. | |
* only use this guide to check your own work. | |
* | |
* To Use: | |
* -Make a package called "exam2review". |
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
package hw3; | |
import static org.junit.Assert.*; | |
import java.util.Arrays; | |
import org.junit.Before; | |
import org.junit.Test; | |
import api.Card; |
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
package galaxy; | |
import java.util.ArrayList; | |
public class Battle { | |
public static void main(String[] args) | |
{ | |
//Make an arraylist of ships! | |
ArrayList<Spaceship> ships = new ArrayList<Spaceship>(); |
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 is my implementation of the Command design pattern. | |
It decouples simple actions into a "Command" class that is | |
inherited by FireCommand, etc. | |
Written in python for simplicity sake. | |
For more info >> http://gameprogrammingpatterns.com/command.html | |
''' |
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
# Streetlamp simulator... I don't know why I made this | |
# Enjoy the simplicity of being a streetlamp | |
# | |
# licensed under the GNU GPL. Not to be distributed for monetary gain. | |
class Lamppost: | |
def __init__(self, initial_state = False): | |
self.state = initial_state | |
self.color = (1,1,1) |
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 is for later. Disregard. |
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
package edu.iastate.cs228.hw2; | |
import org.junit.Test; | |
import org.junit.Before; | |
import static org.junit.Assert.assertTrue; | |
import static org.junit.Assert.assertEquals; | |
/** | |
* @author ThomasMol |
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
import random | |
things_to_do = ['Study', 'No really, study','Play video games','Nap', | |
'Study Break', 'Do python', 'Watch Netflix'] | |
print random.choice(things_to_do) |
OlderNewer