cuttle-cards / cuttle

A two-player battle card game for all ages, built with nodejs, sailsjs, and vuejs
MIT License
145 stars 115 forks source link

[Feature]: Implement requesting a stalemate in the GameState API #1114

Open itsalaidbacklife opened 2 weeks ago

itsalaidbacklife commented 2 weeks ago

Feature Summary

We should implement requesting to end the game in a stalemate in the GameState API

Detailed Description

This should add a new MoveType, update hasValidMoveBody and the api calling consumers in both the game store and the cypress commands file, and update the validate and execute helpers.

validate should throw if the requesting player just requested a stalemate last move. Execute should return a copy of the existing gamestate but with the new move type set.