Files
Coleman-Code/COM380/Project1/Project1/Tower.h
T
Amrit Panesar 52b3c236f2 Towers of hanoi
Signed-off-by: Amrit Panesar <apanesar@4195tech.com>
2015-04-01 18:15:55 -07:00

42 lines
688 B
C++

/***********************************************
* Project 1 - COM380 - S. Mayer
* By: Amrit Panesar - 77260
* Towers of Hanoi
***********************************************/
#ifndef _tower_h
#define _tower_h
#include <string>
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
class Tower
{
public:
Tower(int);
Tower(int, int);
~Tower();
bool isSetAt(int i);
bool setAt(int i, bool in);
int getdnum();
int getTowerID();
void println(int num);
void setAll(bool in = true);
//friend ostream& operator<<(ostream& os, const Tower& tower);
private:
int towerID;
static int s_Discs;
vector<bool> hanoi;
};
#endif