from requirement import GenEd

class Standing:
	def __init__(self, credits_needed=35, credits_taken=0.0):
		self.credits_needed = credits_needed
		self.credits_taken = credits_taken

		self.list = [
			GenEd("FYW", 1),
			GenEd("WRI", 4),
			# TODO: Support requirements that have a variable number of courses needed.
			GenEd("FOL", 4),
			GenEd("ORC", 1),
			GenEd("AQR", 1),
			# TODO: support using 'number of courses' instead of 'number of credits'
			GenEd("SPM", 2),
			GenEd("HWC", 1),
			# TODO: support requiring that courses be from different departments
			GenEd("MCG", 1),
			GenEd("MCD", 1),
			GenEd("ALS-A", 1),
			GenEd("ALS-L", 1),
			GenEd("BTS-B", 1),
			GenEd("BTS-T", 1),
			GenEd("SED", 1),
			GenEd("IST", 1),
			GenEd("HBS", 1),
			GenEd("EIN", 1)
		]

	def increment(self, i=1.0):
		self.credits_taken += i

	def checkStanding(self):
		return (self.credits_taken >= self.credits_needed)

	def __str__(self):
		self.checkStanding()
		output = "You have " + str(self.credits_taken) + " credits "
		output += "out of " + str(self.credits_needed) + " credits needed."
		return output


if __name__ == '__main__':
	tmp = [
		Standing()
	]
	for i in tmp:
		print(i)

	if "FYW" in tmp[0].list:
		print("success")

Implement a rough draft of Standing
Implement a rough draft of Standing
