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
public class Battleship extends Ship{ | |
String[] states = {"0", "0", "0", "0"}; | |
public Battleship(String[] locations, int orient){ | |
this.locations = locations; | |
name = "Battleship"; | |
life = 4; | |
locations = new String[life]; | |
} | |
public boolean isHit(String shot){ |
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
/** | |
* PEDIGREE CHART CREATOR by Karl Ramberg | |
* 12/4/15 | |
* This class draws and organizes a pedigree chart. | |
*/ | |
import java.awt.*; | |
import javax.swing.JFrame; | |
public class Chart extends Canvas{ |
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; | |
use warnings; | |
my $num1 = &getNum; | |
my $operation = &getOperator; | |
my $num2 = &getNum; | |
if($operation eq '+'){ | |
&add; | |
} |
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
/* | |
* File: Switch.c | |
* Author: youngerr | |
* | |
* Created on June 1, 2015, 2:22 PM | |
*/ | |
/*************************************************************** | |
* The #pragma config statements set up the microcontroller's | |
* configuration registers. Changing these settings could make | |
* the PIC Simon Board inoperable. DO NOT CHANGE unless you |
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
# if not running interactively, don't do anything | |
[[ $- != *i* ]] && return | |
# bash completion | |
if ! shopt -oq posix; then | |
if [ -f /usr/share/bash-completion/bash_completion ]; then | |
. /usr/share/bash-completion/bash_completion | |
elif [ -f /etc/bash_completion ]; then | |
. /etc/bash_completion | |
fi |