Test
This commit is contained in:
@@ -17,7 +17,6 @@
|
|||||||
#include "tetris.c" // replace with game code
|
#include "tetris.c" // replace with game code
|
||||||
|
|
||||||
int32_t GAMEDATA(struct games_player *P,void *ptr);
|
int32_t GAMEDATA(struct games_player *P,void *ptr);
|
||||||
void GAMEJSON(UniValue &obj,struct games_player *P);
|
|
||||||
|
|
||||||
uint64_t _games_rngnext(uint64_t initseed)
|
uint64_t _games_rngnext(uint64_t initseed)
|
||||||
{
|
{
|
||||||
@@ -160,6 +159,8 @@ int32_t games_replay2(uint8_t *newdata,uint64_t seed,gamesevent *keystrokes,int3
|
|||||||
|
|
||||||
#include "tetris.cpp" // replace with game specific functions
|
#include "tetris.cpp" // replace with game specific functions
|
||||||
|
|
||||||
|
void GAMEJSON(UniValue &obj,struct games_player *P);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
./c cclib rng 17 \"[%229433dc3749aece1bd568f374a45da3b0bc6856990d7da3cd175399577940a775%22,250]\"
|
./c cclib rng 17 \"[%229433dc3749aece1bd568f374a45da3b0bc6856990d7da3cd175399577940a775%22,250]\"
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ int random_tetromino(struct games_state *rs)
|
|||||||
|
|
||||||
int32_t tetrisdata(struct games_player *P,void *ptr)
|
int32_t tetrisdata(struct games_player *P,void *ptr)
|
||||||
{
|
{
|
||||||
tetris_game *tg = ptr;
|
tetris_game *tg = (tetris_game *)ptr;
|
||||||
P->gold = tg->points;
|
P->gold = tg->points;
|
||||||
P->dungeonlevel = tg->level;
|
P->dungeonlevel = tg->level;
|
||||||
return(0);
|
return(0);
|
||||||
|
|||||||
Reference in New Issue
Block a user