Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

CSC112 Spring 2016 Examples

2370 views
1
#ifndef BACKTRACK_H
2
#define BACKTRACK_H
3
4
class MoveState
5
{
6
public:
7
virtual bool reject()=0;
8
virtual bool accept()=0;
9
virtual MoveState* next()=0;
10
11
//move "memory"
12
virtual MoveState* before()=0;
13
virtual MoveState* after()=0;
14
};
15
16
bool backtrack(MoveState *c);
17
18
#endif
19