Skip to content

v3.0.0

Choose a tag to compare

@halp1 halp1 released this 08 Mar 16:06
· 306 commits to main since this release

The second major update to Triangle.JS!

  • Added a new type of Ribbon encoder, called teto, which is now the default. This does not rely on node:vm, and uses significantly less memory than the previous vm encoder
  • Overhauled the internal gameplay processing engine. It can now process gravity and replicate a human player's board state.
    • This adds fully functional opponent spectating. This can be useful for features such as boardwatching. It also allows Triangle to be used for a replay viewer.
  • Added a new snapshot and fromSnapshot method to the Engine class that allows the engine to save and load any game state. This is also useful for a replay viewer or similar application
  • Added more documentation on how to handle gameplay
  • Fixed several desync issues
  • Added the skip property in the full frame to match TETR.IO's latest update and prevent getting kicked from the server
  • Updated opener phase to last options.openerphase instead of options.openerphase - 1 pieces, as this was also changed in TETR.IO's latest update