head	1.5;
access;
symbols
	tonic_4:1.5
	tonic_3:1.5
	tonic_2:1.5
	demo:1.5.0.8
	design_report:1.5
	oral_presentation_freeze:1.5.0.6
	DAVEG_CDP:1.5.0.4
	template_integ:1.5.0.2;
locks; strict;
comment	@ * @;


1.5
date	95.11.21.09.56.54;	author jered;	state Exp;
branches;
next	1.4;

1.4
date	95.11.21.07.30.32;	author jered;	state Exp;
branches;
next	1.3;

1.3
date	95.11.21.06.54.14;	author hartmans;	state Exp;
branches;
next	1.2;

1.2
date	95.11.21.06.10.09;	author jered;	state Exp;
branches;
next	1.1;

1.1
date	95.11.21.03.47.27;	author jered;	state Exp;
branches;
next	;


desc
@@


1.5
log
@Updated test_board to extend the latest board spec. (Added winner())
@
text
@// This is -*- c++ -*- code

// $Id: test_board.h,v 1.4 1995/11/21 07:30:32 jered Exp $

#ifndef __TEST_BOARD_H__
#define __TEST_BOARD_H__

#include <6170.h>
#include <typeinfo.h>
#include "board.h"

class test_board : public board {
 
    // Overview: This class is a subtype of class board, for the test
    // game described in the documentation.

  public:
    // Constructors and Destructors

    test_board();
    // Effects: Constructs a test_board that is not
    // associated with any game.  

    virtual ~test_board();

    // Methods
    virtual bool is_legal_move(move &m, const player *p) const; 
    // Effects: See board.h

    virtual game::move_result apply(move &m, player *p);
    // Effects: See board.h

    virtual bool unapply(move &m, const player *p);
    // Effects: See board.h

    virtual player *winner();
    // Effects: See board.h

    virtual http_response *get(string request, extensions *extras);
    // Effects: See board.h

    virtual void display(extensions *ext, ostream& body) const;
    // Effects: See board.h

    virtual generator <move *> * valid_moves() const;
    // Effects: See board.h

    virtual board::value eval_move_delta(move &m, const player *p) const;
    // Effects: See board.h
    
    virtual board::value evaluate(const player *p) const;
    // Effects: See board.h

    virtual void* force (typeinfo_t &t);

    static typeinfo_t typeinfo;

  private:
    void operator= (test_board &);
    int highest_taken;       // Highest 'piece' taken
    player *won_player;       // The player who has won.
};
#endif
@


1.4
log
@test_board stuff now builds. (Deconst'ed move.)
@
text
@d3 1
a3 1
// $Id: test_board.h,v 1.3 1995/11/21 06:54:14 hartmans Exp $
d34 3
@


1.3
log
@Changes for Jered to build
@
text
@d3 1
a3 1
// $Id: test_board.h,v 1.2 1995/11/21 06:10:09 jered Exp $
d45 1
a45 1
    virtual value eval_move_delta(move &m, const player *p) const;
d48 1
a48 1
    virtual value evaluate(const player *p) const;
a51 1
        static typeinfo_t typeinfo;
d53 1
d58 1
a58 3
    player *wonplayer;       // The player who has won.


@


1.2
log
@Added test_board.C, and Changelog, Updated TODO.
Modified game.C.
@
text
@d3 1
a3 1
// $Id: test_board.h,v 1.1 1995/11/21 03:47:27 jered Exp $
d8 1
a8 1
#include <6.170.h>
d52 1
d54 1
d60 2
a61 2
    static typeinfo_t typinfo;
}
@


1.1
log
@Changed board unapply_move to unapply,
added test directory for test game.
@
text
@d3 1
a3 1
// $Id$
d9 1
d36 7
a42 1
    virtual void display(extensions *ext, ostream *body) const;
d56 3
@
