Represents a single move in a board game.
More...
#include <BoardGame_Classes.h>
|
| | Move (int x, int y, T symbol) |
| | Construct a move at (x, y) using a symbol.
|
| int | get_x () const |
| | Get row index.
|
| int | get_y () const |
| | Get column index.
|
| T | get_symbol () const |
| | Get the move symbol.
|
template<typename T>
class Move< T >
Represents a single move in a board game.
- Template Parameters
-
| T | Type of symbol placed on the board (e.g., char, int). |
◆ Move()
template<typename T>
| Move< T >::Move |
( |
int | x, |
|
|
int | y, |
|
|
T | symbol ) |
|
inline |
Construct a move at (x, y) using a symbol.
◆ get_symbol()
template<typename T>
| T Move< T >::get_symbol |
( |
| ) |
const |
|
inline |
◆ get_x()
template<typename T>
| int Move< T >::get_x |
( |
| ) |
const |
|
inline |
◆ get_y()
template<typename T>
| int Move< T >::get_y |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following file: