peterjosling / risk

Networked implementation of the Risk game
1 stars 1 forks source link

Create GameState.isMoveValid() #41

Open zigrab opened 9 years ago

peterjosling commented 9 years ago

Alt name: checkMove would match up with playMove. Although isMoveValid starts with is which is good for boolean stuff.

Will have to take in a Move object and a player ID. Do all checks to make sure the move isn't cheating/is possible etc., return true/false.

I think playerId should probably be stored in the Move class.