Game of Ur
0.3.3
This is a computer adaptation of Game of Ur, written in C++ mainly using SDL and OpenGL.
Toggle main menu visibility
Loading...
Searching...
No Matches
phase.hpp
Go to the documentation of this file.
1
11
12
#ifndef ZOAPPGAMEPHASE_H
13
#define ZOAPPGAMEPHASE_H
14
20
enum class
GamePhase
{
21
INITIATIVE,
//< A phase in which both players roll both dice to determine role-assignments and turn order.
22
PLAY,
//< The phase where the bulk of the game takes place, where pieces are move and counters are exchanged.
23
END,
//< The end of the game, reached when one player succeeds in moving all their pieces to the end of the route.
24
};
25
31
enum class
TurnPhase
{
32
ROLL_DICE,
//< The player must roll the dice now.
33
MOVE_PIECE,
//< The player may move a piece if possible, or roll the dice again.
34
END,
//< No moves are possible, and the turn should go to the next player.
35
};
36
43
enum class
RoundPhase
{
44
IN_PROGRESS,
//< The round is in progress.
45
END,
//< Both players have taken a turn, and the round has ended.
46
};
47
48
#endif
TurnPhase
TurnPhase
A value representing the phases possible in a single turn of the game.
Definition
phase.hpp:31
GamePhase
GamePhase
A value representing the high level phase of an entire game.
Definition
phase.hpp:20
RoundPhase
RoundPhase
A value representing the phase of a single round, where in a round all players take a turn once.
Definition
phase.hpp:43
src
app
game_of_ur_data
phase.hpp
Generated on
for Game of Ur by
1.17.0