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 conceding in the GameState API #1113

Closed itsalaidbacklife closed 13 hours ago

itsalaidbacklife commented 3 weeks ago

Feature Summary

In order to allow the replay system to track when players concede, we should implement concede as a new move type

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 simply return true because players can always concede, and execute should return the existing game state , adding the move type of concede.