1
      2
      3
      4
      5
      6
      7
      8
      9
     10
     11
     12
     13
     14
     15
     16
     17
     18
     19
     20
     21
     22
     23
     24
     25
     26
     27
     28
     29
     30
#ifndef NIM_MOVE_H
#define NIM_MOVE_H

class NimMove {
    public:

        // changed: Construct a move for resigning
        NimMove();

        NimMove(unsigned int heap_, unsigned int count_);

        unsigned int
        get_heap() const;

        unsigned int
        get_count() const;

        // new
        bool
        has_resigned() const;

    private:
        unsigned int heap;
        unsigned int count;

        // new
        bool         resigned;
};

#endif