File: README

package info (click to toggle)
libpmemobj-cpp 1.5.1-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,568 kB
  • sloc: cpp: 14,128; sh: 643; ansic: 497; perl: 381; makefile: 8
file content (31 lines) | stat: -rw-r--r-- 1,052 bytes parent folder | download | duplicates (2)
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
This directory contains an example application implemented using libpmemobj,
it's a game in which all the objects are stored on persistent memory.
This means that the game process can be safely killed and then resumed.

To launch the game:
	./panaconda /path/game/session/file
	or
	./panaconda /path/game/session/file -m /path/config/file/conf/cfg

The second option allow you to define your own maze.
Meaning of symbols in config file is given below:
	'1' - wall
	'0' - space
conf.cfg contains example of predefined maze.

The file with the game session will either be created if it doesn't exist
or opened if it contains a valid pool.

Controls:
	move - arrow keys
	quit - 'q'
	new game - 'n'

This game demonstrates the usage of the very basics of the libpmemobj C++
bindings. It demonstrates pool management, persistent pointers and transactions.

** DEPENDENCIES: **
In order to build the game you need to install ncurses development package.

rpm-based systems : ncurses-devel
dpkg-based systems: libncursesX-dev (where X is the API/ABI version)