package hw2;
/**
* This class encapsulates the logic and state for a simplified
* game of American football.
*
* @author YOUR NAME HERE
*/
public class FootballGame
{
/**
* Number of points awarded for a touchdown.
*/
public static final int TOUCHDOWN_POINTS = 6;
/**
* Number of points awarded for a successful extra point attempt
* after a touchdown.
*/
public static final int EXTRA_POINTS = 1;
/**
* Number of points awarded for a field goal.
*/
public static final int FIELD_GOAL_POINTS = 3;
/**
* Total length of the field from goal line to goal line, in yards.
*/
public static final int FIELD_LENGTH = 100;
/**
* Initial position of the offensive team after receiving a kickoff.
*/
public static final int STARTING_POSITION = 70;
/**
* Yards required to get a first down.
*/
public static final int YARDS_FOR_FIRST_DOWN = 10;
// TODO - everything else :)
}
trono 0 Newbie Poster
JamesCherrill 4,733 Most Valuable Poster Team Colleague Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.