Created
          June 4, 2015 06:18 
        
      - 
      
- 
        Save wallstop/dc047d4855d0f179747a to your computer and use it in GitHub Desktop. 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | final boolean validMove = Arrays.asList(actions).contains(action); | |
| if(!validMove) { | |
| throw new IllegalStateException(String.format("%s did not enter a valid move, (other player) wins!", p)); | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment