blob: e759a9f23c3e5a70355fe4549d03e097242522d2 (
plain)
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
# The Royal Game of Ur
```text
[ ][ ] [ ][ ][ ][ ]
[ ][ ][ ][ ][ ][ ][ ][ ]
[ ][ ] [ ][ ][ ][ ]
```
[Gameplay Wiki](https://en.wikipedia.org/wiki/Royal_Game_of_Ur#Gameplay)
[Play video](https://www.youtube.com/watch?v=WZskjLq040I)
## How to play
Two players face off with 7 pieces taking turns rolling the dice and progressing their pieces
to the end of the paths.
First player is on the bottom, and top player is player 2.
## Development
### Linux
Ur is built with SFML and cmake. You will need to install SFML libraries and cmake utilities.
Then configure cmake:
```sh
cmake .
make
```
### Windows
To build on windows you'll need to setup
the SFML include path as `SFML_DIR`
then make sure to include all the DLLs needed when running.
The ones required right now are:
- `sfml-graphics-2.dll`
- `sfml-system-2.dll`
- `sfml-window-2.dll`
- `libgcc_s_seh-1.dll`
- `libstdc++-6.dll`
- `libwinpthread-1.dll`
Additional SFML libs not used:
- `sfml-audio-2.dll`
- `sfml-network-2.dll`
On linux you can build the project for windows using mingw:
```sh
mkdir build-mingw
cd build-mingw
x86_64-w64-mingw-cmake -S ../ -B .
make
```
You can run your windows build via wine64 by bundling your dll and the res folder along side the exe.
### Debug
To enable debug logging use the cmake flags:
```sh
cmake -DCMAKE_BUILD_TYPE=Debug
```
|