Miniproject to use Redis as a game simulation store
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
cpp_redis @ 9dfb144
.clang_complete
.gitignore
.gitmodules
LICENSE
Makefile
README.org
create.cpp
gameobject.h
simulate.cpp

README.org

http://unmaintained.tech/badge.svg

Install

make

Running

Run bin/create to erase all data in redis and build a new game database.

In one window run bin/simulate A and in another window run bin/simulate B. The two simulation servers will wait for each other automatically.

NOTE: this will fill up your redis instance with the state from every simulation tick. It doesn’t currently erase the old state.

Reduce redis-cli monitor if you want to see all the commands, but it’s pretty noisy. Reduce NUM_OBJECTS in create.cpp to 3 and TICKS_PER_SECOND in simulate.cpp to 1 first.