Menu

#11 Restore state

2.0
closed
State (1)
2024-08-20
2024-08-15
No

Dear Nilsson Opel,
I have tested this poker game and thank you for sharing the code.

Even though this is not a typical "ticket" - I have a related question IMHO;
Did you use some kind of function or extra code to restore a game state?

The reason I am asking is that I feel the need for such a function to perform partial tests...and if you already have written this functionality - would you please share it?

Thank you in advance

Discussion

  • Nilsson Opel

    Nilsson Opel - 2024-08-19

    No, not really. What I have done is to replace calls to Math.random (or functions calling Math.random) with some static value to make things deterministic/repeatable.

     
  • Hakan Bilgin

    Hakan Bilgin - 2024-08-19

    Thanks for taking time to reply. Appreciate it
    I am rewriting this game with updated graphics...as soon as I am done, I'll send you a link!
    Here is a screenshot from development;
    Holdem

     
  • Nilsson Opel

    Nilsson Opel - 2024-08-20
    • status: open --> closed
     

Log in to post a comment.