gnoverse / gnochess

User-friendly chess dApp in Gno ecosystem
https://gnochess.com
GNU General Public License v3.0
16 stars 10 forks source link

fix: Realm timeout calculation #185

Closed clockworkgr closed 1 year ago

clockworkgr commented 1 year ago

The time that should be taken off a player's clock (delta) is the time he spent considering his move (i.e. the time since the rival's last move)

Since MoveTimestamps does not contain the move being examined yet, the rival's move is the LAST element of the slice...not the one before the last

netlify[bot] commented 1 year ago

Deploy Preview for gnochess-signup-form canceled.

Name Link
Latest commit 284885a38c6313030da056bd6910478766e76469
Latest deploy log https://app.netlify.com/sites/gnochess-signup-form/deploys/65140f580c3cf700094fdc7b
netlify[bot] commented 1 year ago

Deploy Preview for gnochess canceled.

Name Link
Latest commit 284885a38c6313030da056bd6910478766e76469
Latest deploy log https://app.netlify.com/sites/gnochess/deploys/65140f584b7bf4000855797a