deleteBefore

Deletes all moves that preceded the provided node in the main line. The node (and its position) becomes the new effective start of the game, creating a new RootNode.

Return

The provided node, which is now the first Node of the game.

Since

1.0.0-beta.1

Author

lunalobos

Parameters

node

The node that will become the first move of the new game history.