]> git.cworth.org Git - empires-server/commitdiff
Add message string to the return value of add_move
authorCarl Worth <cworth@cworth.org>
Wed, 3 Jun 2020 22:20:12 +0000 (15:20 -0700)
committerCarl Worth <cworth@cworth.org>
Wed, 3 Jun 2020 22:20:12 +0000 (15:20 -0700)
Now, instead of just returning a Boolean indicating whether the move
was legal, add_move returns an object with both the Boolean "legal"
property as well as a string "message" indicating what made the move
illegal.


No differences found