|
Strange C++ problem. | by Michiel | 2005-03-10 07:59:02 |
|
Memory bug | by ToLazyToThink | 2005-03-10 08:04:39 |
|
Ok, thanks. | by Michiel | 2005-03-10 08:17:34 |
|
If it's not super top secret | by ToLazyToThink | 2005-03-10 08:29:34 |
|
It is for school. | by Michiel | 2005-03-10 08:36:45 |
|
Small correction | by Michiel | 2005-03-10 08:40:17 |
|
White space is a goodthing | by ToLazyToThink | 2005-03-10 09:05:28 |
|
I think it is, yes, because | by Michiel | 2005-03-10 09:10:53 |
|
If the new reserve is less than the vector size | by ToLazyToThink | 2005-03-10 09:15:04 |
|
Ah, yes. | by Michiel | 2005-03-10 09:17:03 |
|
Sounds like it | by ToLazyToThink | 2005-03-10 09:24:15 |
|
Yes, but I've tried all that stuff already... | by Michiel | 2005-03-10 09:27:01 |
|
What does it do when you step through? (n/t) | by ToLazyToThink | 2005-03-10 09:36:19 |
|
Strangely enough, it works just fine. | by Michiel | 2005-03-10 09:56:41 |
|
Up to you, I'm need to get my but in gear | by ToLazyToThink | 2005-03-10 09:58:35 |
| Ok then. Here goes. (first piece) |
by Michiel |
2005-03-10 10:14:01 |
I've tried my best not to break the board. If anyone sees the problem...
Well, thanks in advance. :)
I'm going to have to break this into pieces.
------------
Bordstand.h
------------
#ifndef BORDSTAND
#define BORDSTAND
#include "vec.h"
#include <iostream>
using namespace std;
class Bordstand {
public:
Bordstand(); // Default
Bordstand(Vec<int> & beginBord);
void initialiseer(Vec<int> & beginBord);
bool geldigeZet(int veld);
bool eindStand();
int grootte();
int & veldInhoud(int speler, int veld);
int & bank(int speler);
int score(int speler);
void doeZet(int veld);
void haalZetTerug();
int aantalZetten();
void printBord();
void printGame();
private:
Vec<Vec<int> > history;
Vec<int> turnHistory;
unsigned diepte;
unsigned bordGrootte;
// Private member functions
bool indexIsBank(unsigned index);
int indexIsPlayer(unsigned index);
int findRotatedIndex(unsigned startIndex, int offset);
};
#endif // BORDSTAND |
|
[ Reply ] |